Ditutup

signal in c

Begin by reading the manual pages for signal (man signal) and wait (Linux: man 2 wait; Unix: man -s 3C wait).

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

etc.

Kemahiran: Pengaturcaraan C

Lihat lebih lanjut: sleep programming, programming cpp, pid programming, function programming, programming function, cpp programming, unix c, signal , signal system, cpp, fork system call, call behalf, incoming call request, using fork program, linux daemon process, unix system programming, signal linux, using exec program, program using fork exec, unix programming, write program fork exec, daemon linux programming, wait linux, program exec fork, daemon programming

Tentang Majikan:
( 4 ulasan ) Philadelphia, United States

ID Projek: #1575851

14 pekerja bebas membida secara purata $55 untuk pekerjaan ini

pkcoder

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

$40 USD dalam sehari
(24 Ulasan)
4.6
argento

Hi, please check PMB. Thanks.

$40 USD dalam 3 hari
(16 Ulasan)
4.4
honeypotant

I have 7 year experience in linux. your job is C or MYSQL? I am ready for all. Regards.

$100 USD dalam 2 hari
(10 Ulasan)
4.4
Toby20100504

I can do this task for you

$50 USD dalam 2 hari
(11 Ulasan)
4.1
kj163

I have good experience in C under Linux.

$50 USD dalam 2 hari
(2 Ulasan)
3.9
ducle

I have 3 years experience in C/C++ programming. I can handle this project. Thank you!

$45 USD dalam 3 hari
(10 Ulasan)
3.5
PedroMC

Greetings. Simple project, ready for delivery now. The C code is well commented and simple to understand. Will also help with any question you have regarding the code. Please see PM. Thanks.

$30 USD dalam 0 hari
(12 Ulasan)
3.4
Magicspell

Hi, Please check your PM for details.

$30 USD dalam 2 hari
(2 Ulasan)
3.3
zeke

Expert Unix/Linux programmer. Available to start immediately and finish within less than a hour. Thank you, Zeke

$50 USD dalam 0 hari
(4 Ulasan)
2.8
C50qcSGP3

Pls check PMB.

$250 USD dalam sehari
(0 Ulasan)
0.0
Sheikh0

I can do it for you.

$50 USD dalam sehari
(0 Ulasan)
0.0
tightcode

Easy. Tell me when to start.

$30 USD dalam sehari
(0 Ulasan)
0.0
HardikR

Please check pm.

$50 USD dalam sehari
(0 Ulasan)
0.0
Aspec59

Hello. More details in PM.

$30 USD dalam sehari
(0 Ulasan)
0.0
CodingComplete

Hi there! I have plenty of experience when it comes to Linux and especially C programming. You'll be pleased with both the end result and the speed of completion of the work if you decide to work with me. Look forward Lagi

$30 USD dalam sehari
(0 Ulasan)
0.0