New answers tagged

2

Capacity You don't use capacity, yet you pass it into both your Producer/Consumer classes. Superficially, it looks like you should be passing the capacity in when creating your Producer semaphore. This would allow 'capacity' items to be put into your list. At the moment, you're restricting it to only putting a single item into the list, then reading it ...


Top 50 recent answers are included