2 eval { require Config; import Config };
4 print "1..0 # Skip: no Config\n";
17 print "thread $num starting\n";
18 for ($i = 1; $i <= 20; $i++) {
19 print "thread $num iteration $i\n";
20 select(undef, undef, undef, rand(10)/100);
23 warn "thread $num saw non-zero level = $level\n" if $level;
25 print "thread $num has lock\n";
26 select(undef, undef, undef, rand(10)/100);
29 print "thread $num released lock\n";
33 for ($t = 1; $t <= 5; $t++) {
34 new Thread \&worker, $t;