Date: Thu, 17 Dec 1998 17:16:39 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Shawn Hargreaves cc: djgpp AT delorie DOT com Subject: Re: how to switch tasks? In-Reply-To: <8D53104ECD0CD211AF4000A0C9D60AE3359D56@probe-2.Acclaim-Euro.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Thu, 17 Dec 1998, Shawn Hargreaves wrote: > I think you can do it by using the signal handling mechanism to defer > the event into a protected mode exception, and then using setjmp() / > longjmp(). True, but the original poster wanted to use task-switching to emulate things like fork(), and that's not possible with signals, since once you spawn another pogram, you are parked inside a real-mode DOS call, and all signals are effectively disabled until the child program exits.