C program signal

In Bearbeitung Veröffentlicht Apr 16, 2012 Bezahlt bei Lieferung
In Bearbeitung Bezahlt bei Lieferung

Write a C/C++ program called [login to view URL] 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 [login to view URL]). 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.

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

C Programmierung

Projekt-ID: #1568577

Über das Projekt

8 Vorschläge Remote Projekt Aktiv Apr 17, 2012

8 Freelancer bieten im Durchschnitt $59 für diesen Job

minhtridn2001

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

$40 USD in 1 Tag
(22 Bewertungen)
4.7
pkcoder

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

$35 USD in 0 Tagen
(26 Bewertungen)
4.6
aleexaibi

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

$30 USD in 7 Tagen
(2 Bewertungen)
1.8
abbasitech

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

$30 USD in 0 Tagen
(1 Bewertung)
1.8
coderz01

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

$30 USD in 1 Tag
(1 Bewertung)
1.6
ChickenSoup

Easy job! I will do it for you

$30 USD in 1 Tag
(0 Bewertungen)
0.0
mohitaswal

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

$30 USD in 0 Tagen
(0 Bewertungen)
0.0
Mp14SKy6D

Pls check PMB.

$250 USD in 1 Tag
(0 Bewertungen)
0.0