3 # A thread mutex deadlock checker. Note that your systems sleep(1) program
4 # should be able to accept floating point time arguments.
6 # Try running as: mutexcheck.sh 200 0.0 35 0.5
9 echo "Usage: $0 total_clients delay burst_clients burst_delay"
20 source import-common.sh
29 passphrase_file=`pwd`/list.key
34 while [ $COUNT -lt $TOTAL ]; do
37 while [ $n -gt 0 ]; do
39 sleep $BDELAY; echo -ne 'LIST' | \
40 pwmc
$PWMC_ARGS --quiet list
> /dev
/null
;
47 COUNT
=$
(($COUNT + $BCLIENTS));
48 echo "Forked $COUNT total clients.";
55 kill -n 0 $PWMD_PID 2>/dev
/null
57 echo "Pwmd is still running. Press Ctrl-C to interrupt."