1.2.1 Systems Software Flashcards
(a) The need for, function and purpose of operating systems. (b) Memory Management (paging, segmentation and virtual memory). (c) Interrupts, the role of interrupts and Interrupt Service Routines (ISR), role within the Fetch-Decode-Execute Cycle. (d) Scheduling: round robin, first come first served, multi-level feedback queues, shortest job first and shortest remaining time. (e) Distributed, embedded, multi-tasking, multi-user and Real Time operating systems. (f) BIOS. (g) Device drivers. (h
What is an operating system?
A program that manages the operations of the computer for the user in order to act as a bridge between the hardware and the user.
What are the six functions an operating system performs?
Providing a user interface Memory management Handling interrupts Processor scheduling Provide security. Management of all I/O.
What are the two memory management techniques?
Paging and segmentation.
How does paging work?
Memory is divided into “pages” of 4kb each, a program can be stored in several non-contiguous pages. A page table uses mapping to store the link between the physical and logical page locations.
How does segmentation work?
Memory is divided logically into segments according to its contents.
What is an interrupt?
A signal from software, hardware, internal clock or peripherals.
Why does a software interrupt happen?
When an application terminates or requests certain services from the OS.
Why might a hardware interrupt happen?
A hardware interrupt will occur when an I/O operation is complete or an error arises.
If there are no errors and nothing being completed or terminated why might an interrupt still take place?
Interrupts are triggered regularly by a timer in order to interrupt a process to allow the next process to have processor time.
What happens when the CPU receives an interrupt?
The CPU suspends the current process and disables all interrupts of a lower priority. it then clears the program counter and all other registers by sending their values into the system stack. and the appropriate ISR is called to deal with the issue.
What is an example of a high priority interrupt?
Power-fail interrupt.
What is an example of a low priority interrupt?
I/O operation termination.
When does the test for interrupt presence occur in the fetch decode execute cycle?
at the end, if the presence is detected then control is transferred to the appropriate ISR.
What does multitasking mean?
A single processor computer carrying out small parts of multiple larger tasks to give the appearance of simultaneous processing.
What are the objectives of the scheduler?
Maximise throughput
Be fair to all users
Provide acceptable response time for users
Ensure hardware is in as much use as possible.