Commit 93d64b3
committed
feat: add TaskSubmissionSystem using ConcurrentLinkedQueue for non-blocking task processing
Implemented TaskSubmissionSystem.java to demonstrate a lock-free producer-consumer
model using ConcurrentLinkedQueue. Showcases non-blocking insertion and retrieval
operations (add, poll) suitable for high-throughput concurrent environments where
threads operate without synchronization locks.
Signed-off-by: https://github.com/Someshdiwan <[email protected]>1 parent 072b12b commit 93d64b3
File tree
1 file changed
+7
-9
lines changed- Section 25 Collections Frameworks/Queue Interface/Concurrent Linked Queue/src
1 file changed
+7
-9
lines changedLines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 3 | | |
10 | 4 | | |
11 | 5 | | |
12 | 6 | | |
13 | | - | |
14 | 7 | | |
15 | 8 | | |
16 | 9 | | |
| |||
31 | 24 | | |
32 | 25 | | |
33 | 26 | | |
34 | | - | |
35 | 27 | | |
36 | 28 | | |
37 | 29 | | |
38 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments