1.2.1 System Software Flashcards
What is an operating system
A collection of programs that work together to provide an interface between the user and the computer
Give 3 functions of the operating system
Memory, Resource, I/O and Interrupt management, Security, User Interface and Utility software.
What are the similarities and differences between paging and segmentation
Both: Are used when RAM space is insufficient, can cause disk thrashing
Paging: Uses equal-sized sections called pages
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 acts as RAM.
Sections of programs currently not being used are moved into virtual memory through paging.
This frees up memory in the RAM for other programs.
What is an interrupt
A signal generated by software of hardware to indicate to the processor that a process needs attention.
Explain the Stages of the Interrupt Service Routine
- Interrupt register is checked at the end of FDE cycle.
- If there is an interrupt with higher priority than the current process, the current contents of the registers in the CPU are transferred into a stack.
- The interrupt service routine is loaded into RAM and the ISR is executed.
- If there are no interrupts with a higher priority, the contents of the stack are popped back into the registers in CPU.
Are these scheduling algorithms pre-emptive or non pre-emptive? First Come First Serve, Shortest Remaining Time, Shortest Job First, Round Robin and Multi Level Feedback Queue
Pre-emptive: Round Robin, Shortest Remaining Time, Multi Level Feedback Queue
Non pre-emptive: First Come First Serve, Shortest Job First
What are the advantages and disadvantages of Multi Level Feedback Queues?
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 were 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
- Running POST (Power-on self test) which ensures that all hardware is correctly connected and functional
- Checking the CPU clock, memory and processor.
- Testing for external memory devices
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.
- Testing programs
- Protection from malware
- Running software compatible with different versions and types of operating systems
Give one advantage and one
disadvantage of intermediate code
Advantage: Platform independent, portable
Disadvantage: Slower execution