Add multithreading module: odd-even, ping-pong, ordered threads, deadlock detection and fixes, virtual-thread variants (25 tests)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b7rnC7jppGGdHGESvy
This commit is contained in:
Claude
2026-10-28 18:10:23 +00:00
parent f80e1079a8
commit 94306c50ab
29 changed files with 1021 additions and 0 deletions
@@ -0,0 +1,6 @@
carrier parallelism = 1
OddEvenWaitNotify on virtual threads, max=10
[odd:1, even:2, odd:3, even:4, odd:5, even:6, odd:7, even:8, odd:9, even:10]
Round robin: 1000 virtual threads, max=3000 -> 3000 events
first 3: [worker-1:1, worker-2:2, worker-3:3]
last 3: [worker-998:2998, worker-999:2999, worker-1000:3000]