Session 2 Flashcards
(34 cards)
OS is a _______ _______ and a _______ _______
OS is a control program and a resource allocator
OS Controls execution of _______ to prevent errors and _______ use of the _______
Controls execution of programs to prevent errors and improper use of the computer.
OS Manages all _______
Decides between conflicting _______ for _______ and fair _______ use
OS Manages all resources
Decides between conflicting requests for efficient and fair resource use
Defining OS
A special piece of software that Abstracts and Arbitrates the use of a computer system.
OS Elements
__________
Process, File, Thread, Socket, Memory Page.
OS Elements
Abstraction
Process, File, Thread, Socket, Memory Page.
OS Elements
__________ –How to do it??
Create, schedule, open, write, allocate.
OS Elements
Mechanism –How to do it??
Create, schedule, open, write, allocate.
OS Elements
__________ –What will be done??
Least Recently User, Earliest Deadline First
OS Elements
Policies –What will be done??
Least Recently User, Earliest Deadline First
Operating System Structure
__________
Only one or two levels of code.
Operating System Structure
Simple
Only one or two levels of code.
Operating System Structure
__________
Independent Layers.
Operating System Structure
Layered
Independent Layers.
Operating System Structure
__________
OS built from many user level processes.
Operating System Structure
Microkernel
OS built from many user level processes.
Operating System Structure
__________
Core kernel with dynamically loadable modules.
Operating System Structure
Modular
Core kernel with dynamically loadable modules.
Operating-System Operations
_____ _____- Interrupt ,trap or System call
Question???
When you are at home dozing your chair, how do you know when someone wants to talk to you on the phone?
A)Periodically pick up the phone to see if someone called. - _____
B) Or do you wait till the phone rings to answer it? - _____
Operating-System Operations
Event driven - Interrupt ,trap or System call
Question???
When you are at home dozing your chair, how do you know when someone wants to talk to you on the phone?
A)Periodically pick up the phone to see if someone called. - polling
B) Or do you wait till the phone rings to answer it? - interrupt
Interrupt
_____ sends a special _____ to CPU when _____arrives.
Interrupt
Device sends a special signal to CPU when data arrives.
Interrupt
Responds to _____ _____signal by _____ current _____.
Interrupt
Responds to hardware interrupt signal by interrupting current process.
System Call
A system call is invoked in a variety of ways, depending on the _______ provided by the underlying _______. It is the method used by a _______to request _______by the operating system.
System Call
A system call is invoked in a variety of ways, depending on the functionality provided by the underlying processor. It is the method used by a process to request action by the operating system.
System Call
Instruction which causes the _______ to change _______ .
System Call
Instruction which causes the processor to change mode .
Timer Interrupt
How to prevent Infinite loop ???
Sets interrupts on specific periods (fixed timer) Uses Counters (variable timer)
Timer Interrupt
How to prevent Process Hogging???
Before turning over control to the user, the operating system ensures that the timer is set to interrupt.
Process Management
A process is a _______ in _______ . It is a unit of _______ within the system.
Process Management
A process is a program in execution. It is a unit of work within the system.
Process Management
Program is a _______ entity, process is an _______ entity.
Process Management
Program is a passive entity, process is an active entity.
Process Management
A process needs certain _______—
- including CPU time, memory, files, and I/O devices—to accomplish its _______.
Process Management
A process needs certain resources—
including CPU time, memory, files, and I/O devices—to accomplish its task.
Process Management
Multi-threaded Process – Each _______ has its own _______ Counter.
Process Management
Multi-threaded Process – Each thread has its own Program Counter.
Process Management
Single-threaded process – one _______ counter
Process Management
Single-threaded process – one Program counter
Process Management Activities
Scheduling _______ and _______ on the CPUs .
Creating and deleting both user and system _______.
_______ and resuming processes.
Providing mechanisms for process _______.
Providing _______ for process communication.
Process Management Activities
Scheduling processes and threads on the CPUs .
Creating and deleting both user and system processes.
Suspending and resuming processes.
Providing mechanisms for process synchronization.
Providing mechanisms for process communication.