C program signal

Write a C/C++ program called [url removed, login to view] that waits a brief period of time (10 seconds; using the sleep function) to simulate a daemon process initializing and then waiting for an incoming request.

After this period, the parent process should fork/exec (don't use the system() function call) a child process (call it [url removed, login to view]). The parent process should then sleep for a longer period of time (2 minutes).

The parent process should determine when the child process exits. The parent process should report the child's PID and it's return/exit status.

The child process should also sleep for a period of time (30 seconds) to simulate a child process performing some work on behalf of the user. After the child process wakes up, it should simply exit with a value of 53.

At each step, both processes should output an informational message to help us understand what is happening, such as the following:

parent: forking child

child: going to sleep


(This information would typically be written to a log file; you may simply write to stdout.)

Kemahiran: Pengaturcaraan C

Lihat lebih lanjut: what is c# programming, what is c programming, t$c, sleep programming, programming with cpp, programming program, pid programming, c programming function, cpp programming, signal, Signal and system, Cpp, c program, fork system call, program output, call behalf, incoming call request, using fork program, stdout, write program using fork exec, call log system, using exec program, incoming log system, program using fork exec, write program fork exec

Tentang Majikan:
( 4 ulasan ) Philadelphia, United States

ID Projek: #1568577

Dianugerahkan kepada:


Hi, I have full experience in this field. I can do this. Please check my PM. Thanks.

$40 USD dalam sehari
(8 Ulasan)

9 pekerja bebas membida secara purata $58 untuk pekerjaan ini


Hi sir. I am a qualified programmer. i can do this task. kindly check pmb. Thank you

$35 USD dalam 0 hari
(24 Ulasan)

I'm C, C++ expert! I will do it perfectly! Please accept my bid and we start now

$40 USD dalam sehari
(21 Ulasan)

I have good experience in C under Linux.

$50 USD dalam sehari
(2 Ulasan)

Hi there, chk private message Thanks and Regards, ABBASITECH (IT SOLUTIONZ ISB)

$30 USD dalam 0 hari
(1 Ulasan)

hi i am qualified programmer in c,c++ i can handle this job ..!!!

$30 USD dalam 7 hari
(2 Ulasan)

Hello. I am ready to help you with this easy task.

$30 USD dalam sehari
(1 Ulasan)

Easy job! I will do it for you

$30 USD dalam sehari
(0 Ulasan)

Hi i am experienced C/c++ programmer , i have working in this area from 3 years please check my PMB

$30 USD dalam 0 hari
(0 Ulasan)

Pls check PMB.

$250 USD dalam sehari
(0 Ulasan)