9 print "Uh oh: $who entered while locked by $global\n" if $global;
12 for ($i = 0; $i < int(50 * rand); $i++) {
21 for ($j = 0; $j < 50; $j++) {
23 for ($i = 0; $i < int(50 * rand); $i++) {
31 for ($j = 0; $j < 50; $j++) {
33 for ($i = 0; $i < int(50 * rand); $i++) {
41 for ($j = 0; $j < 50; $j++) {
43 for ($i = 0; $i < int(50 * rand); $i++) {
51 Thread::sync(\&single_file);
53 $foo = new Thread \&start_a;
54 $bar = new Thread \&start_b;
55 $baz = new Thread \&start_c;
56 print "\nmain: joining...\n";