Esempi con la syscall clone
, specifica di Linux
- Thread senza memoria condivisa source:trunk/threads-isolated.c
- Thread con memoria condivisa source:trunk/threads-shared.c
- Thread con memoria condivisa, mutua esclusione ottenuta con Peterson source:trunk/threads-peterson.c
- Thread con memoria condivisa, mutua esclusione con TSL source:trunk/threads-tsl.c source:trunk/enter.asm
nasm -felf enter.asm cc threads-tsl.c enter.o -o threads-tsl
Esempi in pthreads
- Produttore e consumatore source:trunk/pthreads-pc.c
- Incrementer e watcher source:trunk/pthreads-counter.c
Last modified
14 years ago
Last modified on Apr 22, 2011, 9:39:10 AM
Note:
See TracWiki
for help on using the wiki.