Access over 20 million homework & study documents

Computer Science Assignment 2 1

Content type
User Generated
Subject
Computer Science
Type
Homework
Rating
Showing Page:
1/6
1
Assignment 2
Name
Unit Code and Name
Instructor’s Name
Institution’s Affiliation
Date

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/6
2
Chapter 3 Exercise Questions
1. Name and describe the different states that a process can exist in at any given time.
A process can exist in one of the following states at any given time during its execution.
New, ready, ready-suspended, running, blocked, blocked-suspended, or terminated. A Process is
in a new state when created. The process enters a ready state waiting to be assigned a processor by
a short-term scheduler. The process in a ready state can be suspended from the main memory due
to lack of memory and gets placed in secondary memory in a ready-suspended state. The process
is in a running state if it has been assigned a processor, blocked if it’s waiting for some event to
occur such as an I/O event, and blocked-suspended if it gets placed in a secondary memory when
it was initially in a blocked state. The process terminates and gets out the main memory.
2. Explain the difference between an I/O-bound process and a CPU-bound process.
An I/O-bound process differs from a CPU-bound in that the process execution delay arises
from an I/O event such as a disk read/write or a network read/write. In a CPU-bound arise from a
lot of processes taking much of the CPU time and resources.
3. Describe the actions taken by a kernel to context-switch between processes.
Context-switch initiated by an interrupt. The OS must save the instruction pointer and the
stack point of the process in execution. The OS saves other registers and other machine states. A

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/6

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 6 pages?
Access Now
Unformatted Attachment Preview
1 Assignment 2 Name Unit Code and Name Instructor’s Name Institution’s Affiliation Date 2 Chapter 3 Exercise Questions 1. Name and describe the different states that a process can exist in at any given time. A process can exist in one of the following states at any given time during its execution. New, ready, ready-suspended, running, blocked, blocked-suspended, or terminated. A Process is in a new state when created. The process enters a ready state waiting to be assigned a processor by a short-term scheduler. The process in a ready state can be suspended from the main memory due to lack of memory and gets placed in secondary memory in a ready-suspended state. The process is in a running state if it has been assigned a processor, blocked if it’s waiting for some event to occur such as an I/O event, and blocked-suspended if it gets placed in a secondary memory when it was initially in a blocked state. The process terminates and gets out the main memory. 2. Explain the difference between an I/O-bound process and a CPU-bound process. An I/O-bound process differs from a CPU-bound in that the process execution delay arises from an I/O event such as a disk read/write or a network read/write. In a CPU-bound arise from a lot of processes taking much of the CPU time and resources. 3. Describe the actions taken by a kernel to context-switch between processes. Context-switch initiated by an interrupt. The OS must save the instruction pointer and the stack point of the pro ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
Just the thing I needed, saved me a lot of time.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4