• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

Pre Emptive Multitasking in Classic

porter

Well-known member
The standard ThreadsLib from Apple provides pre-emptive multitasking on 68k and it's a standard part of the operating system.

Programs have to be written to use it, and most of the operating itself will collapse in a heap if you try calling from pre-emptive threads.

 

Dog Cow

Well-known member
That's where an over-lord (the OS) decides how long each task is going to be able to run for. Contrast this to co-operative multitasking, wherein each task must specifically give up time to the next task.

 

Sloar

Active member
Porter I was under the impression that the standard threadlib was only co-operative multitasking.

 

porter

Well-known member
Porter I was under the impression that the standard threadlib was only co-operative multitasking.
One 68k ThreadsLib happily supported pre-emptive multitasking. But you had to play the game and could only call interrupt safe MacOS APIs, which ruled out QuickDraw and anything that allocated memory. You could do plenty with device and network drivers.

On PowerPC they dropped the idea because it fell into the too-hard basket when you also had to include the mixed-mode-manager.

 

joshc

Well-known member
At the end of the day, such a control panel is not of much use without a rewritten Finder that's designed to take full advantage of pre-emptive multitasking. I have downloaded Respond, will give it a try in System 7.1 on my LC 475 soon.

 

shred

Well-known member
I think I once ran NetBSD on an old Classic II (I think it needs a 68030). NetBSD gave the machine full pre-emptive multitasking. Shame it did away with the GUI and couldn't run any Mac software though.

 

shred

Well-known member
NetBSD support X-Windows and your choice of OpenMotif, GNOME, KDE or whatever.
I should have explained myself better... this was back in 1997, NetBSD for a 68k Mac didn't have the same "bells and whistles" as its x86 counterpart. It was pretty much a bare bones *nix OS. Seemed really weird seeing white text on a black background on a Mac.

 
Top