I am working on a project that uses a queue that keeps information about the messages that to be sent to remote hosts. In that case one thread is responsible to put the information into the queue and another thread is responsible for get the pop the information from the queue and send. In that case the 2nd thread needs to check the queue for the information periodically.
But later I found that it is a "Reinvention of Wheel" :) I could use a blocking queue for this purpose.
Now my question is What are the other advantages of using a blocking queue for above application? (Ex : Performance, Modifiable of the code, Any special tricks etc )