Only one thread gets woken up, instead of all threads when an item has been produced.