My question relates to this question asked earlier. In situations where I am using a queue for communication between producer and consumer threads would people generally re
If your queue is non expandable and contains only one producer/consumer thread. You can use lockless queue (You don't need to lock the data access).