I have already explored Time::HiRes since usleep() is defined in this package.
I also attempted to wait for 0 unit of time (second or microsecond) to no avail. The null delay is probably detected somewhere and optimised out.
As stated in the manual, yield() is a no-op on most systems.
In reply to Re^2: How can I force thread switching?
by ajl52
in thread How can I force thread switching?
by ajl52
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |