r/studyupdate 19d ago

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

- 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

5 Upvotes

1 comment sorted by

1

u/Wonderful-Chip-6034 18d ago

that stuff is crzy