Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started