Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

to be completed in the C programming language. please show all your work and provide explanations. finna learn the bottom line just says to name

image text in transcribed

to be completed in the C programming language. please show all your work and provide explanations. finna learn

the bottom line just says to name your source code file and the executable signals.zip

Write a (nearly) indestructable child. Write a program which forks a child process AFTER printing the programs PID. The child process should be printing the currect time and the current content of the executable's folder (all files) every 10 seconds. Please also print the child's PID. Prevent any termination or killing of both processes as good as you can. Check in the parent process if the child process is no more with wait(). If so, fork it again. Prevent any possible signals from terminating both processes. Gonna need: #include time_t = time (NULL); struct tm tm = *localtime (&T); //tm. tm_hour, tm.tm_min and: readdir, opendir,closedir. How we test We run your code and try to terminate and end the child process. Lastly, we will kill the parent. Therefore it would be good (for your points), that we can see the parent's PID. Submission

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago