We have discussed the simplest Three-State Process Transition Model in the class. These states are: • Running, Suspended, Ready • New, Suspended, Running • None of the above • Blocked, Ready, Running • Ready, Executing, New
Added by Joshua J.
Step 1
** Show more…
Show all steps
Your feedback will help us improve your experience
James Kiss and 98 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Select the correct alternative from the given choices. For each of the following transitions, between process states, which transition is not possible? (A) Running $\rightarrow$ Ready (B) Blocked $\rightarrow$ Suspend (C) Ready $\rightarrow$ Ready/Suspend (D) Blocked $\rightarrow$ Running
OPERATING SYSTEM
PROCESSES AND THREADS
For your initial post, compose a real-world analogy to illustrate the concept of different process states (new, running, waiting, ready, and terminated). Considering the diagram of process state in Figure 3.2 of the textbook, describe what happens in your scenario at each of the five oval nodes as well as the six arrows between the nodes. An example is provided below. Scenario: Hospital New: The process is being created. (A new patient enters the hospital) Running: Instructions are being executed. (Tests are being conducted for the patient) Waiting: The process is waiting for some event to occur (such as an I/O completion or reception of a signal). (Waiting for the test reports) Ready: The process is waiting to be assigned to a processor. (The patient should be assigned to a particular specialist depending on the test result) Terminated: The process has finished execution. (The specialist has treated the patient) New → Ready: The patient is admitted Ready → Running: The patient is sent for tests or for surgery Running → Terminate: Operation/treatment completed Running → Ready: Second opinion from a senior specialist Running → Waiting: Waiting for the test reports Waiting → Ready: Reports given to the specialist
Shaiju T.
Consider the state transition diagram of the following figure. Suppose that it is time for the OS to dispatch a process and that there are processes in both the Ready state and the Ready/Suspend state, and that at least one process in the Ready/Suspend state has higher scheduling priority than any of the processes in the Ready state. Two extreme policies are followed: a. Always dispatch from a process in the Ready state, to minimize swapping, and b. Always give preference to the highest-priority process, even though that may mean swapping when swapping is not necessary. Suggest an intermediate policy that tries to balance the concerns of priority and performance.
Akash M.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD