Creates the thread and continues execution, but when I try this it runs the sub (sub_name) but then it blocks. There is a 1 second sleep in the thread sub (Which is a never ending for loop!)use Thread; $thread = new Thread \&sub_name;
This prints a "." every 1 second, but does not allow any interaction from the user or from anything!!! Thanks in advance, Paullosub sub_name() { for(;;) { // do stuff printf("."); sleep(1000); } }
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |