What is an operating system?
A collection of programs that work together to provide an interface between the user and computer.
Give 3 functions of an operating system.
What are the similarities and differences between paging and segmentation?
Both are used when RAM space is insufficient and can cause disk thrashing. Paging uses equal-sized sections called pages while segmentation uses variable-sized logical sections called segments.
Describe how virtual memory is used when there is not enough RAM.
A section of the hard drive is used to act as RAM. Sections of programs not currently being used are temporarily moved into virtual memory through paging. This frees up memory for other programs in RAM.
What is an interrupt?
A signal generated by software or hardware to indicate to the processor that a process needs attention.
Explain the stages of the Interrupt Service Routine.
Are these scheduling algorithms pre-emptive or non pre-emptive? FCFS SRT SJF MLFQ RR
Pre-emptive: RR SRT MLFQ. Non-preemptive: FCFS SJF.
What are the advantages and disadvantages of using Multilevel Feedback Queues for scheduling?
Advantage: Services most urgent interrupts first. Disadvantage: Hard to implement.
Define a real-time operating system and when it may be used.
Real-time operating systems perform a task within a guaranteed time frame. They are used in systems where a response within a given time frame is critical e.g. life support systems self-driving cars power systems.
Describe three functions of the BIOS.
What is the role of a device driver?
Enable the operating system to interact with hardware devices.
Describe an instance in which a Virtual Machine may be used.
Give one advantage and one disadvantage of intermediate code.
Advantage: Platform independent portable. Disadvantage: Slower execution.