An operating system can run more than one program at the same time.
State two things the operating system does to manage the programs that are running at the same time.
Mark scheme
Award one mark for any of the following up to a maximum of two marks:
- Decides which program/process will run on the CPU next (1)
- Decides how long each program/process will run for/gives each process a time slice (1)
- Allocates/shares out main memory between the programs/processes (1)
- Moves a program (and its data) that is not currently being used from main memory to virtual memory/secondary storage, and back when needed (1)
- Stores/saves the state of each process so that it can continue where it left off (1)
Do not accept 'it makes the computer faster'.
Do not accept 'it runs all of the programs at exactly the same time' on a single CPU.
Do not accept the name of a scheduling algorithm on its own (e.g. round robin) without a description.
Example answers and how they were marked
It decides which program will run on the CPU next, and it decides how long each program can run for before it is swapped for another one.
Why: Creditworthy points 'decides which program runs on the CPU next' (1) and 'decides how long each program runs for/time slice' (1).
It decides which program runs next on the CPU and it makes all of the programs run at exactly the same time.
Why: Creditworthy point 'decides which program runs on the CPU next' (1); 'all programs run at exactly the same time' is not credited on a single CPU.
It uses round robin so that all of the programs run faster.
Why: A named scheduling algorithm on its own is not credited, and 'run faster' is not a creditworthy point, so no marks.