program following а. Parent process creates a child process b. Child process executes Priority CPU scheduling algorithm for a user-entered scenario with process_id, arrival_time, burst_time, and priority. This process computes and displays the turnaround time and the waiting time of each process in a tabular form. This process also computes and displays the average turnaround time and average waiting time. c. Once the child process completes, it should send a signal to the parent which in turn terminates the parent

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 7RQ
icon
Related questions
Question

please write c program

Write a C program to perform the following task:
a.
Parent process creates a child process
b.
Child process executes Priority CPU scheduling algorithm for a user-entered scenario with process_id,
arrival_time, burst_time, and priority. This process computes and displays the turnaround time and the waiting
time of each process in a tabular form. This process also computes and displays the average turnaround time
and average waiting time.
C.
Once the child process completes, it should send a signal to the parent which in turn terminates the
parent
Transcribed Image Text:Write a C program to perform the following task: a. Parent process creates a child process b. Child process executes Priority CPU scheduling algorithm for a user-entered scenario with process_id, arrival_time, burst_time, and priority. This process computes and displays the turnaround time and the waiting time of each process in a tabular form. This process also computes and displays the average turnaround time and average waiting time. C. Once the child process completes, it should send a signal to the parent which in turn terminates the parent
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,