Worker Thread
Have work to deal with, no job to wait. Equivalent to the cache and consumer portion of the producer consumer, in which the consumer part uses pooling strategies.
Applicable environment
The thread pool.
Sample Example
Slightly
Phase Summary
From the previous model, the face of the scenario can be said to be production-shared resources-request abandonment strategy-consumption problem, but each model in different stages of the processing method is different.
Shared resources evolve from individual resources to multi-resource.
The request abandonment policy is blocked and rejected.
Consumption has one thread per request that should be optimized to the thread pool independently.
So far, the processing of requests in these patterns does not involve thread stops, return values, and thread-specific data aspects, as described in later chapters.
This article is from the Java Technology Stack notes blog, so be sure to keep this source http://stroll.blog.51cto.com/11038467/1859218
Java multithreaded (10) mode-work thread and phase summary