Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose that an operating system had the following six states: State Description Running Currently using the CPU Ready Waiting for the CPU Blocked for Interrupt

  1. Suppose that an operating system had the following six states:

State

Description

Running

Currently using the CPU

Ready

Waiting for the CPU

Blocked for Interrupt

Waiting for an interrupt handler to finish, then resume running

Blocked for a resource

Waiting for a resource to be allocated, then will become ready

Suspended

Moved to secondary storage from ready

Created

Process is newly created

Terminated

Process no longer exists

Draw a state diagram to represent a process with these states. Make sure to label state transitions.

  1. The table below illustrates a process model of a person, in which there are only two states: sleeping and waking. The states of this process model are as follows:

Waking

Person is doing all other daily activities

Sleeping

Actively sleeping

The transitions between the two states of a person are:

Waking-> Sleeping ( Person is tired and lays down to sleep)

Sleeping -> Waking (Alarm clock goes off and wakes the person from sleep)

  1. Add four more states to the diagram (for example, eating or studying)
  2. Draw all of the possible transitions among the six states in your state diagram.

Step by Step Solution

3.49 Rating (156 Votes )

There are 3 Steps involved in it

Step: 1

1 The required state diagram to represent a process is as follows Created creation m... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Operating Systems Internals and Design Principles

Authors: William Stallings

8th edition

133805913, 978-0133805918

More Books

Students also viewed these Operating System questions

Question

Explain the rationale for the Uninterruptible state in Linux.

Answered: 1 week ago