Skip to content

Commit 30ecaa3

Browse files
committed
feat: add SynchronousQueueDemo demonstrating direct handoff between producer and consumer threads
Implemented SynchronousQueueDemo.java to illustrate how SynchronousQueue enables thread-to-thread data exchange without internal capacity. Demonstrates blocking behavior where put() waits for take(), ensuring synchronized handoff and zero buffering. Signed-off-by: https://github.com/Someshdiwan <[email protected]>
1 parent 77c6b18 commit 30ecaa3

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed

Section 25 Collections Frameworks/Queue Interface/Synchronous Queue/src/SynchronousQueueDemo.java renamed to Section 25 Collections Frameworks/Queue Interface/Blocking Queue/Synchronous Queue/src/SynchronousQueueDemo.java

File renamed without changes.

0 commit comments

Comments
 (0)