use threads; sub thread() { for (1..10) { print "hello"; } } for (1..10) { print "hello"; }