What is an efficient strategy for multiple threads posting jobs and waiting for response from a single thread?
- by jakewins
In java, what is an efficient solution to the following problem:
I have multiple threads (10-20 or so) generating jobs ("Job Creators"), and a single thread capable of performing them ("The worker"). Once a job creator has posted a job, it should wait for the job to finish, yielding no result other than "it's done", before it keeps going.
For…