9 print "Randomising to $seed\n";
14 my ($depth, $a, $b, $c) = @_;
16 print "whoami ($depth): $a $b $c\n";
18 whoami($depth - 1, $a, $b, $c) if $depth > 0;
22 my $r = 3 + int(10 * rand);
23 print "start_foo: r is $r\n";
24 whoami($r, "start_foo", "foo1", "foo2");
28 my $r = 3 + int(10 * rand);
29 print "start_bar: r is $r\n";
30 whoami($r, "start_bar", "bar1", "bar2");
33 $foo = new Thread \&start_foo;
34 $bar = new Thread \&start_bar;
35 print "main: exiting\n";