[Semester 2] Operating System Flashcards
What is the operating system’s purpose?
Handling lower level languages
Basic Input/Output System (BIOS)
Loads the OS into main memory and stores configuration info for peripherals (e.g. keyboards)
Processes
Programs being executed
True or false: Processes are run in secondary storage
False! Processes are allocated locations (usually address spaces) in main memory.
Multi-programming
The OS quickly switches from process to process. This usually happens when the OS boots.
Scheduling
Allocates time and space to processes
How can a process start?
System initialisation
Process-creation system call by a running process
User request to create a new process
Batch job
How can a process be terminated?
Normal exit
Error exit (e.g. invalid input)
Fatal error (e.g. bug)
Killed by another process
Running
The process is currently being used by the CPU
Ready
The process has been temporarily stopped to let another process run
Blocked
The process can’t run until something happens
Threads
Performing different activities related to a process rather than running the process itself
True or false: Threads take up less space than processes
True! Threads aren’t bound to the CPU like processes, meaning they can make more use of the system.
True or false: Threads can only be used once
False! Threads can be used multiple times.
Inter-process Communication (IPC)
Allows processes to share information