www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/06/06:09:14

Date: Sun, 6 Feb 2000 10:22:27 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Robin Johnson <robbat2 AT b3041o6b532i DOT bc DOT hsia DOT telus DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Threads
In-Reply-To: <389C8028.CD9DC3FD@t-p-l.com>
Message-ID: <Pine.SUN.3.91.1000206102206.7505d-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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