-=> Quoting Timo FinnilŽ to All
TF> I'm looking for fork() etc. for Watcom.
Under what platform?
DOS: Can't multitask at all, so it is not doable.
Win16: For almost all intents and purposes, see DOS.
Win32, OS/2: Well, we now have threads and thus a potential model for
anaging
fork(). Unfortunately, fork() _must_ be part of the library (i.e., it must
know the memory in use so it can copy it to the new "process"!). It is
ikely
best implemented by starting another thread. However, as it is going to do
some longjmp's, it won't be easy to do.
The only platform that I know that has fork() in the above list is OS/2 via
EMX. I don't know if DJGPP supports it.
More practically, though, you're probably looking at how to create threads
(_beginthread()) or other processes (system(), spawn*(), exec*()).
Good luck,
... It's always in the name of law and order that freedom is suppressed.
___ Blue Wave/OS2 v2.30
--- FastEcho 1.46
---------------
* Origin: House of Fire BBS - Toronto - (416)601-0085 - v.34 (1:250/536)
|