Question: please I need accurate answers this is operating system class. 1-What are the five states that a process can be? What is the difference between
please I need accurate answers this is operating system class.
1-What are the five states that a process can be? What is the difference between processes waiting in the "ready queue" versus processes waiting in the "waiting" queue?
Answer:
2-Describe how process control block is used in context switches.
Answer:
3- Suppose a process was running and its time slice has just expired. Which queue does it immediately enter? When will it run again?
Answer:
4- In the following code snippet, which part of the code (referred to as X and Y code) corresponds to the parent process code, and which one corresponds to the child process code?
if (fork()) { // X code } else { // Y code }
Answer:
5- What is the purpose of exec() system calls in relation to fork() system call? What are the different arguments of the excelp() system call take?
Answer:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
