Date: Sun, 6 Feb 2000 10:22:27 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Robin Johnson cc: djgpp AT delorie DOT com Subject: Re: Threads In-Reply-To: <389C8028.CD9DC3FD@t-p-l.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.