summaryrefslogtreecommitdiff
path: root/netsvcs/clients/Tokens/mutex/README
blob: cbd1e9c7d6cf44ff5302109cd57e5a4148a65156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

test_mutex

test_mutex tests ACE_Local_Mutex and ACE_Remote_Mutex with both local
and global proxies.  "Local proxies" mean that each thread uses its
own proxy (but same logical token.)  "Global proxy" means that all
threads access the same proxy (and, of course, the same logical
token.)

test_mutex can take the number of threads to run from the
command-line.  Thus, to run the test with one thread and local
mutexes, type:

% ./test_mutex

To run the test with 10 threads and local mutexes, type:

% ./test_mutex -t 10

To run the test with 10 threads and remote mutexes, type:

% ./test_mutex -t 10 -r