영어에서 Worker thread 을 사용하는 예와 한국어로 번역
{-}
-
Colloquial
-
Ecclesiastic
-
Ecclesiastic
-
Programming
-
Computer
The worker thread reads the request from the client.
It then executes the serial plan(one worker thread).
In this trace, the worker thread that handles the request is mapped to LWP 65.
So a realistic server will start multiple worker threads.
The Mutex makes sure that only one Worker thread at a time is trying to request a job.
A parallel-query execution plan can use more than one worker thread.
Timer is designed for use with worker threads in a multithreaded environment.
Next, the worker thread puts the connection to the client(file descriptor 9) in non-blocking mode.
Setting the Maximum Number of Worker Threads.
When the wait operation completes, a worker thread from the pool executes the corresponding callback function.
Partitions are not shared among worker threads.
That is, for each start request, it uses a worker thread to perform the job and processes only one request at a time.
Listing 20-24: Sending Message:: Terminate to the workers before calling join on each worker thread.
Pending= The session is waiting for a worker thread to become available.
When a worker thread finishes, it is not reassigned to another partition.
You can run whatever code you like inside the worker thread, with some exceptions.
Finally the worker thread closes the file that it has just delivered and blocks until the listener assigns it another connection.
Upon accepting the connection, the listener thread wakes up a worker thread to do the request processing.
If your worker threads do not block, consider using thread pool threads. .
Monitor. PulseAll is useful in situations where worker threads block.
The render thread also uses a worker thread to decode, so that decoding does not interfere with other operations on the render thread. .
MaxRequestsPerChild- Like the Unix directive, this controls how many requests a worker thread will serve before exiting.
RESTART Instructs Apache to terminate all runningworker threads as they become idle, reread the configuration file and restart each worker thread based on the new configuration.
Perhaps the best solution,is to extend the AsyncTask class, which simplifies the execution of worker thread tasks that need to interact with the UI.
In this case, multiple worker threads on the outer side of the join each read and work on a different partition.
A serial execution plan,used by a nonparallel query, uses only one worker thread for its execution.
The user worker threads remove execution plans from the plan cache when single cache memory pressure exists.
The following paragraphs explain worker thread allocation in greater detail.
If the number of worker threads isequal to the number of partitions, the query processor assigns one worker thread to each partition.
IntentService This is a subclass of Service that uses a worker thread to handle all of the start requests, one at a time.