Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Need suggestion on problem to distribute work

by Marshall (Canon)
on Jun 14, 2020 at 23:35 UTC ( [id://11118065]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Need suggestion on problem to distribute work
in thread Need suggestion on problem to distribute work

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.
  • Comment on Re^3: Need suggestion on problem to distribute work

Replies are listed 'Best First'.
Re^4: Need suggestion on problem to distribute work
by perlfan (Vicar) on Jun 14, 2020 at 23:37 UTC
    At some point it will cross his mind. xD

    Also, I was just building on your suggestion rather than top posting. So don't take it as a criticism or think I was actually talking to you.

      "So don't take it as a criticism or think I was actually talking to you."

      If you reply to his post "at some point it will cross his mind" that you are replying to him :P

      All is fine. I have no serious objection.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11118065]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-19 20:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found