Commit 30ecaa3
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- Section 25 Collections Frameworks/Queue Interface/Blocking Queue/Synchronous Queue/src
1 file changed
+0
-0
lines changed
0 commit comments