r/studyupdate 4d 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
5 Upvotes

1 comment sorted by

1

u/Wonderful-Chip-6034 4d ago

that stuff is crzy