State transition diagram used for operating system management of the Process Control Block has the following states
A |
|
|
B |
|
|
C |
|
|
D |
|
Option D is Correct answer.
New(Create): This state reside in secondary memory. And a process is about to create.
Option A,B,D are true regarding New state.
Option C is false because there is no New state.
So eliminate option C
Ready: After creation of processes it will go to Ready state. It is resides in main memory. It maintains a queue for processes. Processes which are in ready state waits for CPU time to complete their execution.
Option A,B,D are true regarding Ready state.
Run: The process is chosen by CPU for execution and the instructions within the process are executed by any one of the available CPU cores.
Option B,D are true regarding Run state.
Option A is false because resource allocation is not the primary duty of Run state.
So eliminate option A
Blocked or Wait: A process goes to Wait state if it requires an IO operation. And this state resides in main memory. It does not require any CPU time. After completion of IO it will go to ready state.
Option D is true
Option B false by definition.
So eliminate option B.
Terminated or completed – Process is killed as well as PCB is deleted.
So option D is correct.
State transition diagram used for operating system management of the Process Control Block has the following...
Choose the correct answer 1. A virtual machine executes on a host operating system and a hypervisor provides an API to the actual hardware 2. The guest OS knows that it is not accessing the actual hardware so that it can perform better 3. The VM may supply an environment that is different than the actual host hardware 4. Applications running within the VM have an illusion that they are executing on a real machine Select one: a. All the...
Assume that at time 5 no system resources are being used except for the processor and memory and every process (1,3) is either in ready queue (ready to run) or at CPU. Now consider the following events: (Hints: if a process executes something, it is on CPU at the point, if a process going to do IO or create a process, it needs to give out CPU immediately, if a process is time-out, an event will occur and listed here.)...
2. Consider an operating system that has the fllowing process states, new, ready, waiting (or blocking), running, and terminated. Answer the following questions (a) Draw a process state transition diagram (b) Explain what may cause a process to enter the waiting state from the running state. (c) Do we need a queue for the processes in the running state? Justify your answer (d) Describe the actions taken by a kernel to context-switch between processes 2. Consider an operating system that...
EMULATE A PROCESS CONTROL BLOCK In this assignment you will use Java, Python or C++ to create a process control block. All objects described aren’t provided, you will create them. You can divide up this code into separate files or put all code in one file. Proper documentation is essential, if there are no comments 5% of the total grade will be deducted. The process control block object PCB should have the following fields: ID: a unique ID for this...
Write a C program for: One technique for dealing with deadlock is called “detect and recover.” In this scheme, some procedure is used to identify when a deadlock occurs, and then another procedure is used to deal with the blocked processes. One technique to identify a deadlock is to maintain a resource graph that identifies all processes, all resources, and the relationships between them (that is, which processes exclusively own which resources, and which processes are blocked waiting for which...
This is for a Unix class. Please help me out. I am attaching a skeletal code of the program below, it just needs ti be filled in. Below is a skeletal code of the program. Fork a child process and then use the parent for reading and the child for writing. This is just a way of sending and receiving messages asynchronously. /* ************************************************************* * Utility functions * ************************************************************** */ static void usageError(const char * progName, const char *msg) {...
I cant get the code to work. Any help would be appreciated. Instruction.java package simmac; public class Instruction { public static final int DW = 0x0000; public static final int ADD = 0x0001; public static final int SUB = 0x0002; public static final int LDA = 0x0003; public static final int LDI = 0x0004; public static final int STR = 0x0005; public static final int BRH = 0x0006; public static final int CBR = 0x0007; public static final int HLT...