2 ms·
> doesn't and social pressure forbids head-of-line This is a horrid implementation of a work queue or any queuing in general. You have a multiple workers (tell
by xxs 5y ago
> doesn't and social pressure forbids head-of-line
This is a horrid implementation of a work queue or any queuing in general. You have a multiple workers (tellers) and a single queue - the rest is a dumb design. The other option is work stealing but the example would not work so well with a bank and tellers.
Virtually all banks around here use ticketing system with different queue, effectively a priority queue with multiple workers.