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

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

[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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!