The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-25-2008
gumlucin gumlucin is offline
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..
  #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,864
Can you tell me more about your application? What's the purpose of just forking and sleeping?
  #3 (permalink)  
Old 10-29-2008
gumlucin gumlucin is offline
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
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,212
This smells like homework... Google for ipc unix for tutorials.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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