A program
is a device where information is stored.
is a device that performs a sequence of operations specified by instructions in memory.
is a sequence of instructions
is typcially characterized by interactive processing and time of the CPU's time to allow quick response to each user
A task in blocked state:
is running
is executable
is waiting for some temporarily unavailable resources
must still be placed in the run queues
Identify which state the process will transit: An interrupt occurs from disk unit 1 — P2’s read is complete:
New
Exit
Blocked/Suspend
Blocked
Ready/Suspend
Ready
Running
The process is in the secondary memory and awaiting an event:
In the Running state:
the process is prepared to execute
the process has been released from the pool of executable processes
The process has been created but has not yet been admitted to the pool of executable processes
The process is currently being executed
The process cannot execute until some event occurs
The process is available for execution as soon as it is loaded in main memory
The process is in main memory and available for execution
The OS uses this table to know the location in main memory being used as the source of destination of the input/output transfer:
Primary process table
Memory tables
I/O tables
File table
Identify which state the process will transit: P4 terminates:
Identify which state the process will transit: P1 time slice expires
In which of these states the process is in secondary memory (choose all that apply)
ready
running
blocked
ready/suspend
blocked/suspend
Identify which state the process will transit: P1 executes a command to read from disk unit 3:
Which of the following is not a state of a process?
Terminated
Waiting
Old
Suppose that the process is in “Blocked” state waiting for some I/O device. When the service is completed, it goes to the
Terminated state
Ready state
Suspended state
Running state
With the use of swapping one other state must be added to the 5-state model:
Suspend state
Resume state
Blocked state
Pause state
We can characterize the behavior of an individual process by listing the sequence of instructions that execute for that process. Such a listing is referred to as:
state
listing
fetch
trace
The state of a process is defined by:
The activity to next be executed by the process
The current activity of the process
The activity just executed by the process
The final activity of the products
In the Blocked state:
The process is available for execution as soons as it is loaded into main memory
The process has been released from the pool of executable processes
The process is prepared to execute
In the Ready/Suspend state:
the process is available for execution as soon as it is loaded into memory
the process is currently being executed
the process cannot execute until some event occurs
the process has been created but has not yet been admitted to the pool of executable processes
In the Exit state:
the process has been created but has not yet admitted to the pool of executable processes
Identify which state the process will transit: P3 swapped out
Identify which state the process will transit: P2 is chosen by dispatcher
The data neede by the OS to control a process is contained in the:
handler routine
processor state information
program status word
process control block
In which of these states the process is in main memory:
Which of the following state transitions is not possible?
blocked to ready
blocked to running
running to blocked
ready to running
A reason for swapping:
processor is so much faster than I/O, it will be common for all processes in memory to be waiting for I/O
processor is so much slower than I/O will be common for all processes in memory to be waiting for processor
Process Control Block is:
data structure
process type variable
a block in memory
a secondary storage section
These tables are used to keep track of both main and secondary memory:
A memory
is a device where information is stored
is typically characterized by interactive processing and time of the CPU's time to allow quick response to each user
A processor
is a device that performs a sequence of operations specified by instructions in memory