Q: wouldn't that need to be protected mode to trap those IO port accesses?
unless there's an interrupt involved. those are port and interrupt accesses.
maybe I am wrong. somebody correct me. interrups apparently can be enabled (and
thus intercepted easily, easy to write an interrupt routing, jus
I think threading without multiprocessing is of very limited usefulness in DOS.
All of the other OS's already do that -- I personally don't see a lot of value
there.
I do think that adding multiprocessor support could be quite beneficial, though.
---
For multi-threading, at least for DJGPP, there were 4 libraries [1]:
POSIX Threads[2]
LWP [3]
PDMLWP [4]
Palantir for Allegro [5]
[1] http://www.delorie.com/djgpp/v2faq/faq22_4.html
[2] ftp://ftp.cs.fsu.edu/pub/PART/PTHREADS/pthreads.zip
[3] http://www.goodnet.com/~snarfy
[4] http://www.netgull.c
FWIW, I've been mulling around in my head and doing a little research on what
"threads" in DOS might need to look like. Based on what I've seen so far, I
think it might be possible to do parallel processing in DOS, but not "threads"
(at least not in the traditional sense).
There would be lots