Guajara in other languages: Spanish, Deutsch, French, Italian ...



Scheduler pattern

In computer programming, the scheduler pattern is a software design pattern. It is a concurrency pattern used to explicitly control when threadss may execute single-threaded code.

The scheduler pattern uses an object that explicitly sequences waiting threads. It provides a mechanism to implement a scheduling policy, but is independent of any specific scheduling policy — the policy is encapsulated in its own class and is reusable.

The read/write lock pattern is usually implemented using the scheduler patter to ensure fairness in scheduling.

Note that the scheduler pattern adds significant overhead beyond that required to call a synchronized method.

The scheduler pattern is not quite the same as the scheduled-task pattern.

See also

Lock pattern, Mediator pattern, Interruptible command, Reactor pattern




Wikipedia - All text is available under the terms of the GNU Free Documentation License.

Tagoror dot com  -  Legal Information  -  Contact us