good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: Need suggestion on problem to distribute workby Marshall (Canon) |
on Jun 14, 2020 at 23:35 UTC ( [id://11118065]=note: print w/replies, xml ) | Need Help?? |
Nowhere did I say to use the DB as the work queue. In Perl there are ways to push an item onto a "thread-safe" array. Likewise threads can get an item off of this array in a thread-safe way. I guess I should have said "shift off of the array" instead of "pop". I would process requests in roughly FIFO order.
In Section
Seekers of Perl Wisdom
|
|