[Semester 2] Operating System Flashcards

1
Q

What is the operating system’s purpose?

A

Handling lower level languages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Basic Input/Output System (BIOS)

A

Loads the OS into main memory and stores configuration info for peripherals (e.g. keyboards)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Processes

A

Programs being executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or false: Processes are run in secondary storage

A

False! Processes are allocated locations (usually address spaces) in main memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Multi-programming

A

The OS quickly switches from process to process. This usually happens when the OS boots.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Scheduling

A

Allocates time and space to processes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How can a process start?

A

System initialisation
Process-creation system call by a running process
User request to create a new process
Batch job

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How can a process be terminated?

A

Normal exit
Error exit (e.g. invalid input)
Fatal error (e.g. bug)
Killed by another process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Running

A

The process is currently being used by the CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Ready

A

The process has been temporarily stopped to let another process run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Blocked

A

The process can’t run until something happens

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Threads

A

Performing different activities related to a process rather than running the process itself

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

True or false: Threads take up less space than processes

A

True! Threads aren’t bound to the CPU like processes, meaning they can make more use of the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

True or false: Threads can only be used once

A

False! Threads can be used multiple times.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Inter-process Communication (IPC)

A

Allows processes to share information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Kernel

A

Controls the OS and can access all instructions and I/O devices

17
Q

True or false: The kernel can be accessed by the user

18
Q

System call

A

Requesting services from the kernel

19
Q

Process management (forking)

A

Duplicates a process by creating a child. The child has the same properties as the parent, but any further changes aren’t linked.

20
Q

File management

A

Creating/moving/deleting/etc. files and directories

21
Q

True or false: UNIX files have a table of nodes

A

True! This table describes every aspect of the file.

22
Q

True or false: The kernel decides which files can be accessed by the user

A

True! This is to prevent them from accessing sensitive files.

23
Q

Kernel panic

A

Rebooting the system and sending debugging processes

24
Q

True or false: The kernel always reboots the system during kernel panic

A

False! Sometimes the kernel waits for the system to reboot itself.

25
Virtual machine
Emulates software such as operating systems
26
Dual booting
Switching between operating systems while using a virtual machine
27
Container
Packages code and dependencies, which can then be deployed to other users
28
Bootloader
Manages the machine's boot process
29
Daemons
Background processes that start once the system is booted
30
True or false: The graphical server deals with displaying the GUI
False! The graphical server loads pixels on the monitor.
31
Master Boot Record (MBR)
Holds information on file systems
32
Grand Unified Bootloader (GRUB)
Loads and transfers control to the kernel
33
Client server model
The client requests information from the server until it gets what it wants
34
Processes are given ___ per element
1 byte
35
True or false: A process' stack and heap can't change
False! They can grow and shrink during execution.
36
True or false: The maximum number of addresses the heap can store depends on the size of the disk
True! The heap is usually located in virtual memory, meaning it can use disk space.
37
Stack
Current procedure calls, parameters and local variables
38
Heap
Dynamically allocates memory during runtime
39
User mode
Prohibits user from accessing sensitive files and instructions