|This article is an orphan, as no other articles link to it. Please introduce links to this page from ; try the Find link tool for suggestions. (September 2012)|
The pattern typically does some kind of task that is not subject of real-time computing. An example would be the task of sending e-mails, where the end-user waiting several minutes is not a problem. The pattern design will typically implement worker thread that accesses a message queue that holds all unprocessed tasks and regularly check and process these tasks. If there are no tasks the worker thread will sleep for an increasingly long time until there are tasks in the queue again; when this occurs the sleep time is reset.