The easiest way to simulate multi-threading in DOS is to break down you program into small execution chunks, and then intercept the time interrupt to execute a piece of your program.
Obviously, this is more complex than having a thread, but if you think about it, it can be used to solve most 'concurrency' requirements.
Another way is to create a TSR (terminate and stay resident) program, not always practical for small problems because of the interprocess communication issues.
I do not know of any Thread library in DOS, but would very much like to know about it, if one exists....
Comments
Obviously, this is more complex than having a thread, but if you think about it, it can be used to solve most 'concurrency' requirements.
Another way is to create a TSR (terminate and stay resident) program, not always practical for small problems because of the interprocess communication issues.
I do not know of any Thread library in DOS, but would very much like to know about it, if one exists....
Hope this helps