Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[20 points] [PROGRAMMING INTERFACE - SHORT QUESTIONS] [5 pointsl What do you know about a Unix process? a. b. [5 points] In UNIX, there is

image text in transcribedimage text in transcribed

[20 points] [PROGRAMMING INTERFACE - SHORT QUESTIONS] [5 pointsl What do you know about a Unix process? a. b. [5 points] In UNIX, there is a saying that says "Everything is a File". Can you think of reasons why people say that about UNIX? [5 points] Consider the following C program # include main() c. int pid; pid-fork; // fork 1 if (pid 0) fork ) /7 fork 2 else /7 fork 3 /7 fork 4 fork ) fork printf (". ") How many processes are created when you run the above program? Draw a graph that establishes the parent/child relationships among the processes Each process should be represented by a node and a parent/child relationship by a directed edge from the parent to the child d. 15 points] Consider a typical process state diagram with states READY, RUNNING, and BLOCKED WAITING) and the corresponding state transitions between them. For the two scenarios below, describe the state transitions that the process undergoes: I. A process makes a system call to request to sleep for 6 seconds. After being worken up, the process continues to run II. A process (say P1) makes a system call to perform some lengthy I/O The VO device is capable of interrupts. The operating system will [20 points] [PROGRAMMING INTERFACE - SHORT QUESTIONS] [5 pointsl What do you know about a Unix process? a. b. [5 points] In UNIX, there is a saying that says "Everything is a File". Can you think of reasons why people say that about UNIX? [5 points] Consider the following C program # include main() c. int pid; pid-fork; // fork 1 if (pid 0) fork ) /7 fork 2 else /7 fork 3 /7 fork 4 fork ) fork printf (". ") How many processes are created when you run the above program? Draw a graph that establishes the parent/child relationships among the processes Each process should be represented by a node and a parent/child relationship by a directed edge from the parent to the child d. 15 points] Consider a typical process state diagram with states READY, RUNNING, and BLOCKED WAITING) and the corresponding state transitions between them. For the two scenarios below, describe the state transitions that the process undergoes: I. A process makes a system call to request to sleep for 6 seconds. After being worken up, the process continues to run II. A process (say P1) makes a system call to perform some lengthy I/O The VO device is capable of interrupts. The operating system will

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions