OPERATING SYSTEMS LESSON 2 Flashcards
program in execution and must progress in a sequential fashion.
PROCESS
Overview - (3) Parts of a Process
1.Current activity
2. Contents of the processor’s registers
3. Process stack
2 parts of a process stack
1 Temporary Data
2 Data section
(T or F) A program is a process
FALSE
it is a passive entity such as the contents of a file stored on
disk,
PROGRAM
is an active entity with a program counter specifying the next instruction to
execute and a set of associated resources.
PROCESS
A program is an inanimate entity; only when a processor “___________” into it, does it becomes the “__________” entity which we call a process.
- Breathes Life
- Active
State Transition of a process (4)
- Dispatch
- Timerrunout
- Block
- Wake up
ready —–running
DISPATCH
running —–ready
TIMERRUNOUT
running —–ready
BLOCK
blocked —–ready
WAKE UP
to select the next task and get it ready for processing
DISPATCH
if the process does not voluntarily relinquish the CPU before the time interval expires, the interrupt causes the operating system to regain control
TIMERRUNOUT
a group of digits, characters or words that are held in one reaction of an I/O medium and handled as an input
BLOCK
input becomes available
WAKE UP
(ENUM) The State Diagram Values (5)
- New
- Running
- Waiting
- Ready
- Terminated
State - the process is being created
NEW
State - instructions are being created
RUNNING
State - the process is waiting for some event to occur (such as I/O completion or reception of a signal)
WAITING
STATE – the process is waiting to be assigned to a processor
READY
STATE– the process has finished execution
Terminated
Other term for “process control block”
TASK CONTROL BLOCK
It serves as a dictionary for any information that may vary from process to process.
PROCESS CONTROL BLOCK
(ENUM) The many pieces of information of a process control block that is associated with specific processes. (7)
- PROCESS STATE
- PROGRAM COUNTER
- CPU REGISTERS
- CPU SCHEDULING INFORMATION
- MEMORY MANAGEMENT INFORMATION
- ACCOUNTING INFORMATION
- I/O STATUS INFORMATION
the state may be new, ready, running, waiting, halted and so on.
PROCESS STATE