delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/06/17:59:15

From: ayoung <ayoung AT pacific DOT net DOT hk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Threads
Date: Sun, 06 Feb 2000 13:36:30 -0800
Organization: Pacific Supernet Limited
Lines: 26
Message-ID: <389ECA5E.E2CBFD58@pacific.net.hk>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000206102206 DOT 7505d-100000 AT is>
NNTP-Posting-Host: ppp187.dyn2.pacific.net.hk
Mime-Version: 1.0
X-Mailer: Mozilla 4.05 [en] (Win95; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Within the listed thread packages to allow a pre-emptive scheduler signals
via DPMI are used.  Does anyone know the context switching overheads of this
construction and how high could the timer resolution be pushed ?

Eli Zaretskii wrote:

> On Sat, 5 Feb 2000, Robin Johnson wrote:
>
> > Anybody know how to do 2 simultaneous threads in a DJGPP program?
> > I want to make a STL queue of a structure and just have my main code to
> > add items onto the queue, that a separate thread in my program is
> > handling at the same time.
>
> I suggest to take a look at section 22.4 of the FAQ (v2/faq230b.zip
> from the usual DJGPP sites), it lists several threading packages which
> support DJGPP.
>
> > I think I could probably hook into the timer interrupt, but
> > my queue handler thread could take a little long, and mess up the
> > timing.
>
> Running a scheduler (which needs to switch stacks) from a hardware
> interrupt handler is explicitly prohibited by the DPMI spec.



- Raw text -


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