What is the primary purpose of an operating system?
To provide an interface between the user and computer and manage low-level tasks.
What are the eight key features provided by an operating system?
Memory management, Resource management, File management, Input/Output management, Interrupt management, Utility software, Security, User interface.
What is memory management?
The process of sharing main memory fairly between multiple programs and applications.
What are the three main techniques used in memory management?
Paging, Segmentation, Virtual Memory.
What is paging?
Splitting memory into equal-sized sections called pages that can be swapped between main memory and hard disk.
What is segmentation?
Splitting memory into logical-sized divisions called segments that vary in size based on program structure.
What is virtual memory?
Using a section of the hard drive to act as RAM when main memory is insufficient.
What is disk thrashing?
When a computer freezes due to pages being swapped too frequently between hard disk and main memory.
What are interrupts?
Signals generated by software or hardware indicating a process needs attention.
How are interrupts stored?
In a priority queue within an interrupt register, ordered by priority.
When does the processor check for interrupts?
At the end of each Fetch-Decode-Execute cycle.
What is the Interrupt Service Routine (ISR)?
A routine that handles interrupts by saving register contents and loading the appropriate response.
What happens after an interrupt is serviced?
The interrupt flag is reset, and the queue is checked for more high-priority interrupts.
What is scheduling?
Ensuring all programs receive fair processing time using various algorithms.
What are the two types of scheduling algorithms?
Pre-emptive and Non pre-emptive.
What is Round Robin scheduling?
Each job gets equal time slices in cyclic order until completion.
What is First Come First Served scheduling?
Jobs are processed in the order they entered the queue.
What is Shortest Job First scheduling?
Jobs are ordered by completion time, with shortest jobs first.
What is Shortest Remaining Time scheduling?
Jobs are ordered by time left for completion, with least time first.
What is Multilevel Feedback Queues?
Using multiple queues with different priorities for job scheduling.
What is processor starvation?
When a process isn’t given adequate processor time to complete.
What is a distributed operating system?
Runs across multiple devices to spread processing load.
What is an embedded operating system?
Built for specific devices with limited functionality and low power consumption.
What is a multi-tasking operating system?
Allows seemingly simultaneous task execution using time slicing.