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

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

5. [20 points] [PROGRAMMING INTERFACE - SHORT QUESTIONS] a. [5 points] What do you know about a Unix process? b. [5 points] In UNIX, there is a saying that says "Everything is a File". Can people say that about UNIX? you think of reasons why [5 points] Consider the following C program. # include main() c. int pid; pidfork); // fork 1 // fork 2 // fork 3 if (pid- 0) fork else fork // fork 4 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. [5 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. Afteir II. A process (say P1) makes a system call to perform some lengthy IO being worken up, the process continues to run. The I/O 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!