If a command ends with ";" then the parent must wait() for that child to finish
Added by Gonzalo R.
Step 1
In many programming and scripting languages, a command that ends with a semicolon indicates that it is a complete statement. Show more…
Show all steps
Your feedback will help us improve your experience
David Mccaslin and 78 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
instruction not completed
Linear Systems and Matrices
Solving Systems of Equations
In Linux, type the command that will display the list of jobs that bash is tracking for a particular session. 2. Type the command that will bring job #2 to the foreground. Once complete, use ctrl+z to suspend that job. 3. Type the command with the appropriate options that will display all processes, including processes without a controlling terminal. Make sure to show the sleep processes in your screenshot. 4. Type the command with the appropriate option to send a signal to one of the sleep PIDs to cause abrupt program termination that cannot be blocked, ignored, or handled.
Akash M.
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.
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