List the phases in the life cycle of a process created by the OS, with a brief description of what happens in each phase
Added by Matthew P.
Step 1
This involves allocating memory for the process, initializing process control blocks (PCBs), and setting up the necessary resources. The process is typically created by a system call, such as `fork()` in Unix-like systems. Show more…
Show all steps
Your feedback will help us improve your experience
James Kiss and 94 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. What are the necessary steps for a new process creation? (i) Assign an identifier to the new process. (ii) Suspend all other processes. (iii) Allocate space for the process. (iv) Initialize process control block. (v) Update process-related data structures. (vi) Update process state information wherever necessary. (vii) Set the process to user mode (viii) Notify all the machines in the network about the new process. (ix) Set the state of the new process as suspended (A) All except (ii), (v), (vi), (viii) (B) All except (ii), (vii), (viii), (ix) (C) All except (iv), (v), (vii), (ix) (D) All except (iii), (iv), (vii), (ix)
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.
Supreeta N.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD