Mail Archives: djgpp/2000/02/06/06:09:14
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 -