www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/16/13:51:14

Date: Wed, 16 Oct 1996 19:18:11 +0200 (MET DST)
From: Mark Habersack <grendel AT ananke DOT amu DOT edu DOT pl>
Reply-To: grendel AT ananke DOT amu DOT edu DOT pl
To: Leath Muller <leathm AT gbrmpa DOT gov DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: New threads package available!
In-Reply-To: <32643931.5451@gbrmpa.gov.au>
Message-ID: <Pine.NEB.3.95.961016191201.14188I-100000@ananke.amu.edu.pl>
MIME-Version: 1.0

On Wed, 16 Oct 1996, Leath Muller wrote:

>> >The lwp package is a very simple time sliced multitasking library.  It
>> >allows you to execute functions 'in the backround' without having to
>> >worry about multitasking.  The package supports two of the PC's timers
>> >so that it will still work with other librarys that also use the timer.
> 
>> Josh, will the library be able to handle several TASKS (i.e. real
>> applications) in the future. Do you intend to extend it to work as a simple
>> kernel for asynchronous execution of tasks?
>
>Here is food for thought: Is it possible to implement threads of this
>sort into csdpmi? If we could, then we would be able to run seperate
It's certainly possible. But you must remember that CWSDPMI is a very delicate
structure and I suppose that Charles is the only one who knows it good enough
to modify it (I once tried to add DPMI 1.0 services to it but all I achieved
is dead computer). Yet Charles says there won't be (probably) any further
releases of CWSDPMI... Maybe just a little guide over the code, Charls? ;-)

 >programs, spawn them, have forks and semaphores, etc. csdpmi would be
>able to control the ldt's and what not for true multi-tasking. Mind
Sure, implementing it inside CWSDPMI would make things easier since it can run
some parts of code in ring 0 and this is required to do task switching in PM.

>you, we would be better off with this using the ELF format (geez, I 
>hope I don't start this up again... :)
>
>What do you think? possible? (A lot of work in the smallest case... ;)
There's just another small 'but' here. Adding task switching capabilities to
CWSDPMI would mean making it into a small OS kernel. It'd be small if to look
at it as on an OS but as DPMI server it would be rather big. Well, I suppose
that 'with a little help of my friends' we could do it. Charls, would it be
very time-consuming for you to enlighten us as to obscure CWSDPMI internals?

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Stand straight, look me in the eye and say goodbye
Stand straight, we drifted past the point of reasons why,
Yesterday starts tommorow, tommorow starts today,
The problems always seem to be
  we're picking up the pieces on the ricochet
/\/\/\/\/\/\/\/\/\/\ http://ananke.amu.edu.pl/~grendel \/\/\/\/\/\/\/\/\/

- Raw text -


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