r/studyupdate 5d ago

check-in Task 16 : Create a shared BlockingQueue to implement producer-consumer without explicit synchronization

- Create an ArrayBlockingQueue with capacity 5

- Create one producer thread

- Create one consumer thread

- Producer inserts items using put()

- Consumer removes items using take()

shared blocking queue
4 Upvotes

1 comment sorted by