1/30
Looks like no tags are added yet.
What is an operating system?
System software that manages computer hardware and software resources and acts as an middle layer between the user and the computer, providing a platform for applications to run.
Name the functions of an OS.
Memory Management
File Management
Process Management
I/O device management
Security and Access Controls
Batch processing?
Jobs (program, data, directions) are queued and executed one after another, with no user interaction.
Interactive processing?
The user communicates with the program as it executes (real time).
Time-sharing vs multitasking?
Time-sharing: one machine, many users. Multitasking: one user, many tasks.
Application vs system software?
Application: performs specific tasks for users.
System: provides infrastructure for application software (OS + utility software).
What are the two components of an OS?
User interface and kernel.
What is the kernel?
The part of the OS that performs the basic required functions: file manager, device drivers, memory manager, scheduler and dispatcher.
Shell vs GUI?
Both are user interfaces: shell is text-based, GUI is graphical.
What is the file manager?
The file manager is the kernel component that coordinates the use of mass storage and files.
Directory vs directory path?
A Directory (folder) is a user-created bundle of files and other directories.
A path is a sequence of directories within directories.
What is a device driver?
A device driver is software that communicates with a device's controller, translating the OS's generic requests into the specific steps the device needs.
What does the memory manager do?
The memory manager allocates space in main memory and keeps each program within its allotted space.
What is virtual memory?
The illusion of more main memory than exists, created by swapping pages back and forth between main memory and mass storage.
What is bootstrapping?
The procedure that starts the OS: the CPU runs the boot loader from ROM when power is turned on.
What does the boot loader do?
Transfers the OS from mass storage into main memory, then jumps to it and hands over control.
Program vs process?
A program is a static collection of instructions stored on a disk and a process is the dynamic activity of executing those instructions.
What is process state?
A snapshot of the current status of a process: program counter, general-purpose registers, and the related portion of main memory.
What is the scheduler?
The scheduler adds new processes to the process table and removes completed ones.
What is the dispatcher?
Controls the allocation of time slices to the processes in the process table.
What is multiprogramming?
Dividing time into time slices and switching the CPU among processes.
What signals the end of a time slice?
An interrupt, generated by a timer circuit.
What is a process (context) switch?
Changing from one process to another.
What is an interrupt handler?
A program, part of the dispatcher, stored at a predetermined location in memory; it runs when an interrupt arrives.
Why does multiprogramming improve efficiency?
Time a process spends waiting for I/O isn't wasted; it's given to another process.
What is a critical region?
A group of instructions that should be executed by only one process at a time.
What is a semaphore?
A properly implemented "control flag" that guards a critical region.
What is mutual exclusion?
The requirement that only one process at a time be allowed to execute a critical region.
What is deadlock?
A deadlock is a situation where two or more processes are unable to continue executing because each is waiting for a resource held by another process.
Four conditions required for deadlock?
Mutual exclusion: A resource can only be used by one process at a time
Hold and Wait: A process holds a resource while waiting for another
No preemption: A resource cannot be forcibly taken away from a process
Circular Wait: Processes form a chain where each is waiting for another’s resource
Deadlock detection and correction vs avoidance?
Detection/correction: attack condition 3 by forcibly retrieving resources after deadlock occurs.
Avoidance: attack conditions 1 or 2 so it never occurs.