A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 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