Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This new directory contains two samples explaining the usage of the semaphore interfa...
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 23 Oct 2007 09:42:53 +0000 (09:42 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 23 Oct 2007 09:42:53 +0000 (09:42 +0000)
commit7116fd0b162ddec18c4a0b7485b189160b08200d
tree5ae9ca93f61bd29274422915a81c102a4dcab53c
parent7236b52536dbdf823a94fef2a07536f548ddcc21
This new directory contains two samples explaining the usage of the semaphore interface provide by the xbt layer.

The first example : sem_basic, show how to use a semaphore to manage the access of a global variable shared by multiple threads.
The second example : sem_sched, show how to use the semaphore interface to implement a simple context switch based on threads.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4850 48e7efb5-ca39-0410-a469-dd3cf9ba447f
examples/xbt/sem_basic.c [new file with mode: 0644]
examples/xbt/sem_sched.c [new file with mode: 0644]