delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/17/10:16:41

Date: Thu, 17 Dec 1998 17:16:39 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: how to switch tasks?
In-Reply-To: <8D53104ECD0CD211AF4000A0C9D60AE3359D56@probe-2.Acclaim-Euro.net>
Message-ID: <Pine.SUN.3.91.981217171429.3529G-100000@is>
MIME-Version: 1.0
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019