Week 5: Introduction to Operating Systems Flashcards
Name the disadvantages of Serial Processing?
Scheduling means time is wasted and it takes a long time to set up.
Describe the role of the monitor in Simple Batch Systems?
Controls sequence of events and gives control to jobs.
Describe Simple Batch Systems?
No longer direct access to processor.
Processor fetches and executes from either monitor or job.
This means main memory and processor time must be given to the monitor.
This improves utilization, however.
Compare Uniprogramming and Multi-Processing?
Uniprogramming: Program waits for I/O.
Multi-Processing: Processor switches to another job while one job waits for I/O.
Needs enough memory for OS (resident monitor) and one user program.
What is the principle objective and source of directives (to OS) of Batch Multiprogramming?
Principle Objective: Maximize processor use.
Source of directives: Job control language commands (provided with the job).
What is the Principle Objective and Source of Directives (to OS) of Time Sharing Systems?
Handle multiple interactive jobs, processor time shared among multiple users.
Principle Objective: Minimize response time.
Source of Directives: Commands entered at terminal.
What is the role of the Operating System?
Manage the set of resources for movement, storage and processing of data.
What are some of the services an Operating System provides?
Program development and execution.
Controlled access to I/O devices, files and system.
Error detection and response.
Accounting.
What happens upon start-up of an Operating System?
Bootstrap.
Firmware initializes CPU registers, device controllers and memory contents.
Kernel is loaded into memory.
What is a system daemon?
A service provided outside the kernel.
Loads at boot time and runs entire time the kernel is running.
What occurs during an interrupt?
CPU transfers execution to fixed location (starting address of service routine).
State the difference between hardware and software interrupts?
Hardware: Sends interrupt signal to CPU at any time.
Software: Sends interrupt signal when executing special operation (system call).
How does multi-tasking work in the operating system?
Several jobs kept simultaneously in memory.
CPU Scheduler decides which job to bring into memory from disk to be executed (virtual memory used).
What is the User Mode in an Operating System?
Contains user programs.
Certain memory/instructuions protected/not executed.
What is the Kernel Mode in the Operating System?
Contains monitor.
All memory/privileged instructions accessed.
Hardware detects violatiom of modes.