System Software (A Level)

Advanced operating system concepts and translation.

Topics

Key terms

16.1 Purposes of an operating system

Process control block (PCB)
A data structure holding the information the OS needs to manage a process, such as its state and register values.
Process states
A process is running (using the CPU), ready (waiting for the CPU) or blocked (waiting for an event such as input).
Scheduling
The OS deciding which process gets the CPU and for how long.
Round robin
Each process gets a fixed time slice in turn.
First come first served (FCFS)
Processes run in the order they arrived, each until it finishes.
Shortest job first (SJF)
The process with the shortest expected run time is chosen next.
Shortest remaining time first (SRTF)
A pre-emptive version of SJF: the process with the least time left runs next.
Priority scheduling
The process with the highest priority runs first.
Time slice (quantum)
The fixed amount of CPU time a process is given before the scheduler moves to the next.
Pre-emptive scheduling
The OS can interrupt a running process to give the CPU to another.
Context switch
Saving the state of the running process and loading the state of the next one.
Deadlock
Two or more processes each wait for a resource held by another, so none can continue.
Paging
Dividing memory into fixed-size frames and programs into pages of the same size, so pages can be placed in any free frame.
Page table
Records which frame each page of a process is stored in.
Segmentation
Dividing a program into variable-sized segments based on its logical structure, such as code and data.
Page fault
A request for a page that is not in memory, so it has to be loaded from disk.
Thrashing
The system spends more time swapping pages in and out of memory than running programs, so it slows right down.

16.2 Translation software

Token
A meaningful unit found during lexical analysis, such as a keyword, identifier, operator or number.
Symbol table
A table used during compilation that records identifiers with their data types, scope and memory locations.
Code generation
The stage of compilation that produces the object code or machine code.
Code optimisation
Improving the generated code so it runs faster or uses less memory, without changing what it does.
Intermediate code (bytecode)
Platform-independent code produced between source code and machine code, such as Java bytecode.
Just-in-time (JIT) compilation
Compiling intermediate code to machine code while the program is running.
Backus-Naur form (BNF)
A notation for describing the syntax rules of a programming language.
Production rule
One BNF rule that defines a term, for example <digit> ::= 0 | 1 | 2.
Syntax diagram
A graphical way of showing the syntax rules of a language.
Reverse Polish notation (RPN)
Writing expressions with the operator after its operands, for example 3 4 +. It is easy for a computer to evaluate with a stack.

Practice questions for System Software (A Level)