home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-01-17 | 900 b | 28 lines | [TEXT/MPCC] |
- Cooperative MultiTasking Notes
- 17Jan95 e
-
- Cases:
- foreground processing
- background processing
- foreground waiting for user
- background waiting for user
- foreground waiting for user or internal timer (*)
- background waiting for user or internal timer (*)
-
- TicksBetweenEventChecks - a constant 6
- gWaitTicksBG - variable: 20
- gWaitTicksFG - variable: 1
-
- An estimate is made
- of the number of trips around the interpreter loop
- between calls to MAYBE_EVENTCHK()
-
- gMaxSleep = GetCaretTime(); /* user may change it using desk accessory */
- applies when in the foreground
-
- If ReadHangsP then within a read(stdin)
- each call to os_console_read_nohang which returns no chars
- doubles the gWaitTicksXG until a maximum (256 X) is reached
-
- * Applications which use an interval timer or other timing mechanism not
- integrated with the Finder will have to adjust these mechanisms.