Skip to main content
Home Forums Pre Emptive Multitasking in Classic Pre Emptive Multitasking in Classic
Thread

Pre Emptive Multitasking in Classic

Pre Emptive Multitasking in Classic 68k 17 posts Aug 31, 2009 — Sep 2, 2009
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.

@porter, sounds like 'the manager' for gs/os althought blended with multifinder a bit.

what is pre-emptive multitasking?

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.

It's something the Amiga had long before MacOS :p

That's because the Mac was keep it simple, stupid and only had 128k.

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

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.

That's because the Mac was keep it simple, stupid and only had 128k.
Yeah the amiga did it in 256kb in the a1000 in '85.

In sooo much ram!!!

Intel did pre-emptive multitasking on the lowly 8080 back in 1980.

Intel did pre-emptive multitasking on the lowly 8080 back in 1980.
how? you have my interest,

was it with M/PM ? - would that have been dri?

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.

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.

NetBSD .... 68030. Shame it did away with the GUI
NetBSD support X-Windows and your choice of OpenMotif, GNOME, KDE or whatever.

... and couldn't run any Mac software though.
It never claimed it would. ::)

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.

mp.ls