Multi-Process C programming in UNIX/Linux ?

Multi-Process C programming in UNIX/Linux ?

Post by Eric Cho » Tue, 06 Feb 2001 17:41:59



Hello,

Would you please to teach me how to fork 5 processes, and that the
parent will stop until all the child process stoped ?

Would you please to give me a simple example ?

Best regards.
Eric

Sent via Deja.com
http://www.deja.com/

 
 
 

Multi-Process C programming in UNIX/Linux ?

Post by David Rubi » Tue, 06 Feb 2001 15:12:16



> Hello,

> Would you please to teach me how to fork 5 processes, and that the
> parent will stop until all the child process stoped ?

Please see my reply to your previous thread: "fork() problem, please help ?"

        david

--
FORTRAN was the language of choice
for the same reasonthat three-legged races are popular.
        -- Ken Thompson, "Reflections on Trusting Trust"

 
 
 

1. How can UNIX Multi-process with Multi-process interface

I am fairly new to UNIX so pardon me if the following questions seem trivial.
I have some basic UNIX books, but they do not cover the following:

I have two applications that can run totally independent.  My goal is to
link the two programs via stdout and file sharing.  Because each process
is computationally intensive, I would like to run the process concurrently
on two different processors (either one machine when dual processors are
available to me, or two machines).  I realize this is a global hunger
problem so my initial goal is to have both programs running on one machine
concurrently.

From my simple point of view, two possibilities come to mind:

        1.  Have each process run in the background of a single shell
        2.  Have each process run under seperate shells

I would appreciate any information on how to accomplish this task or where
I can get the information to accomplish this task.

Note:  I have an HP 715/50 and reading the man pages on the shell (ksh) has
only confused me.

2. GUS MIDI in FreeBSD 3.0-current

3. Does anyone know how to debug multi-process programs using dbx?

4. SLS103: weird phys/logical parms? ESDI bigdrive

5. multi-process + multi-thread servers?

6. Java IDE's for Linux?

7. ? multi home + multi cgi, multi email, multi log, multi support

8. problem with a floppy

9. Q: Multi-process/thread user level locking

10. Design of a server: multi-threaded or multi-processes?

11. multi-process and bsd db

12. AIX, C Language, Multi-process : fopen(..."a+") and mv

13. multi-process file I/O problem