dimanche 19 mars 2017

What is the name for taxi-passenger design pattern?

Imagine a taxi stand. Sometimes there is a queue of taxi cabs, sometimes a queue of passengers. A thread pool is a perfect example of implementation of such a pattern: sometimes worker threads wait in line for tasks, and sometimes tasks wait for worker threads.

More generally, this pattern can be applied for any pool of resources and accompanying queue of requests to that resources.

What is the name of such a pattern? Dispatcher? Distributor? I am thinking how to name a class which implements such a pool.

Aucun commentaire:

Enregistrer un commentaire