The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help in wait or sleep command nua7 Shell Programming and Scripting 4 09-25-2008 05:41 AM
wait command - cat it wait for not-chile process? alex_5161 Shell Programming and Scripting 2 06-26-2008 06:14 PM
how to start a process and make it sleep for 5 mins and then kill that process shrao Shell Programming and Scripting 6 03-27-2007 12:54 PM
wait / sleep what to use??? gkrishnag UNIX for Dummies Questions & Answers 1 09-19-2006 05:13 AM
my process is going to sleep mode after 12 hours but i need my process in in firsy pr mukesh_rakesh1 UNIX for Advanced & Expert Users 0 09-05-2006 02:43 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-25-2008
Registered User
 

Join Date: Oct 2008
Posts: 2
Smile How can i use fork,sleep,wait and write in a process with father and son..??

Hi..
I was unable to do (gcc code) which refers to the fork,wait,sleep and write..

what i want to do:
A process of father create (fork) a son and will sleep 90 seconds..After this, son process create a grandchild and will sleep 60 seconds..Grandchild process will sleep for 30 seconds..After sleep,each process must write a message about which process is and what is the PID..

Please i want you to help me..thanks for all..
i will wait the answers..
Sponsored Links
  #2 (permalink)  
Old 10-28-2008
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,769
Can you tell me more about your application? What's the purpose of just forking and sleeping?
  #3 (permalink)  
Old 10-29-2008
Registered User
 

Join Date: Oct 2008
Posts: 2
it must be a program which has written in C (gcc)..This program will use the fork,sleep,wait and write to do the process which i refer up..it must be only about what i refer up,i dont want a big program with many details..
  #4 (permalink)  
Old 10-29-2008
Moderator
 

Join Date: Feb 2007
Posts: 3,547
This smells like homework... Google for ipc unix for tutorials.
Google The UNIX and Linux Forums
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 07:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66