[comp.lang.pascal] Does TP for Windows support a "fork" call?

Robert_Salesas@mindlink.bc.ca (Robert Salesas) (05/23/91)

Well, Windows doesn't support "threads" yet, so TPW can't either.  You
can however start other programs.  So if your child process is a seperate
program then yes you can, if it is another piece of your code, then no you
can't.

Rob
--
\--------------------------------------------------------------------/
\ Robert Salesas             + Usenet: Robert_Salesas@MINDLINK.bc.ca /
\ Eschalon Development Inc.  + CIS:    76625,1320    BYTE:  newdawn  /
\--------------------------------------------------------------------/

rxcob@minyos.xx.rmit.oz.au (Owen Baker) (05/24/91)

Does anyone know if Turbo Pascal for Windows supports a Unix like fork() call
to spawn child processes as per real multitasking OS's or have I lost the
plot somewhere!?

+----------------------------------------------------------------------------+
| Owen Baker                                                                 |
| odb@bodoni.csu.rmit.oz.au                      RMIT Novell - BODONI/ODB    |
| CSU, RMIT, Melbourne, Vic. Australia.          Telephone (61) (3) 660-2038 |
+----------------------------------------------------------------------------+

oneel@heawk1.gsfc.nasa.gov ( Bruce Oneel ) (05/24/91)

In article <1991May24.073620.16606@minyos.xx.rmit.oz.au> rxcob@minyos.xx.rmit.oz.au (Owen Baker) writes:



   Does anyone know if Turbo Pascal for Windows supports a Unix like fork() 
   call to spawn child processes as per real multitasking OS's or have I lost 
   the plot somewhere!?

Nothing like commenting about something you only know a little
(nothing!) about...

I just purchased TPW but have been working a few months with BC++.
fork() for the non unix people, basically creates a child process
running exactly the code you are currently running, which normally you
overlay (replace as it were) with another executable.  To my
understanding, windows is (coorperative) multi-tasking and you start
another program with win-exec (spelling may be wrong).  So, short
answer, no.  Long answer, you can do what you need without fork in
windows, as long as you make sure that your program does something
which causes windows to get control once in a while.

bruce

p.s.  postings early in the morning after about 2 hrs of sleep are
always suspect!

--
Bruce O'Neel              oneel@heasfs.gsfc.nasa.gov
NASA/GSFC/STX/Code 664