Section 2: Systems software Flashcards
What is an operating system?
An operating system is a program or set of programs that manages the operations of the computer for the user, acting as a bridge between the user and the computer’s hardware since a user cannot communicate with hardware directly.
Where is the operating system held?
The operating system is held in permanent storage.
What are the 5 basic functions of an operating system?
5 basic functions of an operating system:
- Processor scheduling
- Interrupt service routines
- Memory management
- Management of input and output
- File management
How does an operating system manage memory?
The operating system simultaneously allocates specific areas of memory to programs and files when they’re opened.
What is logical memory?
Logical memory is the virtual memory allocated in secondary storage.
What is physical memory?
Physical memory is the memory stored in RAM.
How does a paging system work?
In a paging system, memory is divided into spaces of 4Kb each. A process currently held in memory could be held in several contiguous pages in logical memory, but physically they may be non-contiguous. A page table uses mapping to store a link between physical memory and logical memory.
What is an interrupt?
An interrupt is a signal from a software program, hardware device or internal clock to the CPU.
When does an interrupt occur? (Software, hardware and clock)
A software interrupt occurs when an application program terminates or requests certain services from the operating system.
A hardware interrupt may occur, for example, when an I/O operation is complete, or an error occurs.
A clock interrupt occurs on a regular timer to indicate that a process has had too much time spent on it and the next one needs to be worked on. This is what allows multi-tasking to take place.
What happens when the CPU receives an interrupt signal?
When the CPU receives an interrupt signal, it suspends execution of the running program or process and disables all interrupts of a lower priority. It then puts all values of the program counter and of each register into the system stack, while an interrupt service routine is called to deal with the interrupt.
What is the descending order of priority for interrupts?
Priority for interrupts:
- Power fail interrupt
- Clock interrupt
- An I/O device has finished its job or requires service
What are the objectives of the processing scheduler?
Objectives of the processing scheduler:
- Be fair to all users on a multi-use system
- Maximise throughput
- Ensure hardware resources are kept as busy as possible
- Provided acceptable response times to the user
How does round robin scheduling work?
In round robin scheduling, processes are dispatched on a first in first out (FIFO) basis, with each process in turn being given a limited amount of CPU time called a time slice or quantum.
What are the objectives of a multi-level feedback algorithm?
Objectives of a multi-level feedback algorithm:
- Give preference to short jobs
- Give preference to I/O jobs
- Separate processes into categories based on their needs to the processor
How does the operating system manage backing storage?
The operating system is required to keep a directory of where files are stored so that they can be quickly accessed. Similarly, it needs to know which areas of storage are free so that new files or applications can be saved.
How does the operating system control peripheral management?
The operating system communicates with I/O devices to ensure that they are suited to the function they’re requesting to be used for and then sends it the correct data that it needs to carry out its function.
What is a distributed operating system?
A distributed operating system is a form of parallel processing in which the load is spread over multiple computer servers.
What is a multi-tasking system?
A multi-tasking system is a system that can run several programs simultaneously, each stored in the main memory.
What are the features of an embedded system found in a household appliance?
Features of an embedded system in a household appliance:
- Minimal user interface comprised of buttons, dials and/or a small screen
- Will accept input from sensors and send output to control devices
- Complex memory management is not required as there is very little ram
- Not any permanent data storage devices to be managed
What are the features of a real-time (embedded) operating system?
Features of a real-time operating system:
- Must respond very quickly to inputs or sensors
- Must be able to deal with many inputs simultaneously
- Must have “failsafe” mechanisms designed to detect and take appropriate action if a hardware component fails
- Must incorporate redundancy i.e. if one component fails it must automatically switch to backup hardware
What is the fundamental purpose of BIOS?
The fundamental purpose of BIOS is to initialise and test the system hardware components and load the operating system from the hard disk into RAM.
What is a device driver?
A device driver is a computer program that provides a software interface to a particular hardware device.
What is a virtual machine?
A virtual machine can be defined as any instance where software is used to take on the function of the machine, including executing intermediate code or running an operating system within another to emulate different hardware.
What are the two classes of software?
The two classes of software are systems software and applications software.