Debian Codegraph @

examples/Synch/README

raw
1
2
3 This directory currently only contains one example for testing process
4 semaphores.
5
6 proc_sema:
7 This test can be used to test out the named process semaphores
8 support on your platform. It can be run as either a supplier or a
9 consumer process. The available options are:
10
11 -c: Make us a consumer.
12 -s: Make us a supplier.
13 -x: Remove the semaphore after we're done.
14 -n: Specify the name of the semaphore.
15 -i: Number of acquire/release we'll perform.
16 -d: Delay for # of second before exiting the program
17
18 You can use this test to see how process semaphores work. For
19 example, run the program as:
20
21 proc_sema -c -i 10
22 proc_sema -s -i 3
23 proc_sema -s -i 7