Have a look at the blocking queue:
↧
Have a look at the blocking queue: