Computer Science Homework Help

CPT 304 UArizona Global Campus Operating System Discussion

 

Part 1


Prior to beginning work on this assignment, read the following sections in your textbook: 3.1 to 3.2 and 3.7 in Chapter 3: Processes. In addition, answer the following Practice Exercises: 3.5, and 3.7. Solutions to the Practice Exercises can be accessed via the textbook: Chapter 3.

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. (New patient enters 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 senior specialist
  • Running → Waiting: Waiting for the test reports
  • Waiting → Ready: Reports given to the specialist
  • Part 2

  • Prior to beginning work on this interactive assignment, read the following sections in your textbook: 3.1 to 3.2and 3.7 in Chapter 3: Processes, 4.1 to 4.3 and 4.8 in Chapter 4: Threads, and 5.1 to 5.3, 5.11, and 5.12 in Chapter 5: Process Synchronization. In addition, answer the following Practice Exercises: 3.5, 3.7, 4.1, 4.3, and 5.3. Solutions to the Practice Exercises can be accessed via the textbook website: Chapter 3, Chapter 4, and Chapter 5.You will be including revised content from this interactive assignment in your OS Theory Concept Map final assignment. Prior to completing work on this interactive assignment, you may wish to review the instructions included for the OS Theory Concept Map final assignment in Week 5 to see how it fits into your overall final project.To complete this week’s interactive assignment, you will continue building the OS Theory Concept Map by addressing the following topics concerning how operating systems enable processes to share and exchange information:
    • Describe process, process state, and process control block.
    • Compare single- and multi-threaded motivations and models.
    • Describe the critical-section problem and explain a software solution that resolves this problem.

    Logically arrange the essential concepts about threads and process synchronization into a hierarchy of nodes that branch from the main idea. Include cross-links where necessary to show relationships in different sections of the concept map. Use connecting nodes to accurately describe each relationship between topics that connect. Section 2 must have at least three nodes and four connecting nodes.After completing Section 2 of the concept map, post a link to your OS Theory Concept Map in the discussion forum for your peers to review.