6
print "The child thread must keep ticking while the main thread sleeps\n";
7
print "If it's not so, then we have a compatibility problem\n";
11
my $thrChild = threads->create( \&child );
14
print "P> Launched the child thread. Now I sleep 20 seconds\n";
16
print "P> Parent woke up. Was there ticking inbetween?\n";
24
print "C> Child thread started. I will print 10 lines, one per second\n";
28
print("C> Child tick " . $i . "\n");