Path: utzoo!attcan!uunet!unisoft!bdt!david From: david@bdt.UUCP (David Beckemeyer) Newsgroups: comp.sys.atari.st Subject: Re: Reentrant system calls Summary: It's a big job. Keywords: possibly stupid question / multitasking TOS Message-ID: <451@bdt.UUCP> Date: 23 Nov 88 03:05:51 GMT References: <4186@Portia.Stanford.EDU> Reply-To: david@bdt.UUCP (David Beckemeyer) Distribution: na Organization: Beckemeyer Development Tools, Oakland, CA Lines: 35 In article <4186@Portia.Stanford.EDU> maverick@Portia.Stanford.EDU (Steve Whitney) asks: >3) Would it be possible to write a scheduler of some sort to sit at > the TRAP #2 vector and figure out which process to run with some > kind of Juggler like interface to switch the menu bars? It's possible - but it's probably more work than you had in mind. You could hack this forever trying to get it to work reliably. And in the long run it would be less work to simply re-write it. I looked long and hard into adding a multiiasking layer to GEM. I even got some preliminary stuff implemented, along the lines Steve mentions above - switching menus when the application is topped. It's a big job. The current GEM stuff isn't ready for multitasking. Also many programs that look like GEM programs really cheat like heck. This is why the author of Juggler had to re-write the switching technique becuase so few GEM programs were "true" well-behaved GEM programs. I doubt if this is going to change in the future. This makes it very dificult to implement the ideal "super-system" where GEM is provided as a sub-component of a real multitasking windowing system. You'd also have to write a new desktop since the standard one doesn't know anything about multitasking. Summary: it would be a lot of work to do it right. And it would be even more work to try and hack in a "switcher" trap #2 handler that really works. -- David Beckemeyer (david@bdt.UUCP) | "Lester Moore - Four slugs from a .44 Beckemeyer Development Tools | no Les, no more." 478 Santa Clara Ave. Oakland, CA 94610 | - Headstone at Boot Hill UUCP: {uunet,ucbvax}!unisoft!bdt!david | Tombstone, AZ