This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm new to multithreading programming.
I have a problem with this :
There is a Thread that manage requests
There are many Threads that make requests to the Manager
When there aren't any active requests, the manager must sleep but when arrive one request
the manager must take this active request and start your job.
If arrive one other request, it will be positioned into a queue and his
owner thread will be suspended
When the Manager's job will be finished will be taken another request from the queue
How can I suspend and put a Thread in a queue and then restarting it ?