1. Idle Task Library
- Posted by Ryan W. Johnson <ryanj at fluidae.com> Nov 10, 2006
- 568 views
- Last edited Nov 11, 2006
I just posted an update to my Idle Task Library on the User Contributions. It now works on linux AND windows. It provides 2 useful routines: nanosleep() - to sleep for less than 1 second, and idletask() - causes the Euphoria task scheduler to idle the CPU when not running other tasks (otherwise, the scheduler will use active waiting when there is less than 1 second between scheduled tasks, which hogs the CPU) Read the comments in the source file for more info and usage examples. Read this conversation for more information: http://www.listfilter.com/cgi-bin/esearch.exu?thread=1&fromMonth=3&fromYear=B&toMonth=5&toYear=B&keywords=%22Multitasking:+active+waiting!%3F%22 ~Ryan W. Johnson Fluid Application Environment http://www.fluidae.com/ [cool quote here, if i ever think of one...]