CompuServe Messages

Multitasking

#: 32611 S7/ProgrammingForum unknown
    09-Sep-86 12:19:45
Sb: #32589-Multitasking
Fm: Dan Moore 74035,243
To: Darrel Schneider 73267,732

This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.

From what I recall there isn't much overhead other than saving and reloading the 68K registers. The balance of the rest of the task switch is figuring out which task/process gets run next. If a task doesn't do a wait() it will run for up to 4 frames (1/15 second) with out interruption (ignoring interrupts such as vblank). If it does a wait() it will run for less. (That is why it is important to use wait(), it increases the overall performance of the system.) Dan