GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 25-May-2004, 23:36
7eleven 7eleven is offline
New Member
 
Join Date: May 2004
Location: Australia
Posts: 7
7eleven is on a distinguished road

fork() question on c?


Hi,

I have to create a c program to create 4 child process. The question is how can I distiguish between
first child or second child and so on?
Info : Each child have unique process id

Thank's
  #2  
Old 26-May-2004, 21:50
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,243
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by 7eleven
Hi,

I have to create a c program to create 4 child process. The question is how can I distiguish between
first child or second child and so on?
Info : Each child have unique process id

Thank's
You just answered your own question -- each child has a unique ID
__________________

Age is unimportant -- except in cheese
 
 

Recent GIDBlogToyota - 2008 September Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fork() questions fj8283888 C Programming Language 0 02-May-2004 09:18
A question about message forums... Straga Free Web Hosting 2 07-Apr-2004 04:54
question of practice magiccreative C++ Forum 1 06-Feb-2004 07:17
a C input question.. tmike C Programming Language 2 19-Sep-2003 02:39
a C input question tmike C Programming Language 1 16-Sep-2003 02:31

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 15:53.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.