Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Metered-concurrency/PicoLisp/metered-concurrency.l
Normal file
8
Task/Metered-concurrency/PicoLisp/metered-concurrency.l
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(let Sem (tmp "sem")
|
||||
(for U 4 # Create 4 concurrent units
|
||||
(unless (fork)
|
||||
(ctl Sem
|
||||
(prinl "Unit " U " aquired the semaphore")
|
||||
(wait 2000)
|
||||
(prinl "Unit " U " releasing the semaphore") )
|
||||
(bye) ) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue