Module 2: OS Overview Flashcards

1
Q

kernel

A

one of two core components (with the file system)

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

file management system

A

one of three core components of OSs (with kernel and I/O component). all data in a computer is stored in the form of a file, and the OS helps maintain the file sizes, names, locations, directory structures, and file access rights

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

CPU

A

computer processing unit; circuitry to execute program instructions

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

CPU cycle

A

the cycle performed by the CPU to read a program instruction, execute it, and repeat it

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

user mode

A

applications in user mode can only run instructions that affect is own application; executing functions in the application’s code

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

kernel mode

A

allows privileged machine instructions to run. this mode is entered by flipping a bit on the CPU (TRAP)

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

privileged machine instructions

A

have global effects on your whole computer and external devices. examples: writing data to disks and running the logic that makes one application stop running, and instead start running another application

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

process

A

a program in execution. because there are limited CPU cycles and the OS needs to perform many tasks, the process concept allows OSs to switch between executing different tasks

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

process context

A

the snapshotted state of a process, which includes its data, memory utilization, and execution progress. the process context must be saved when the OS wants to stop running a process, and it gets reloaded when the OS resumes running the process

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

process management

A

a function of the OS kernel that manages applications using an abstraction called a process

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

address space

A

the memory organization for processes. each process has its own address space of five segments:

  1. code
  2. data
  3. heap
  4. stack
  5. kernel
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

code

A

segment of the process address space that is stored in the memory locations specified by the lowest addresses. consists of the instructions being executed for the process

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

program counter

A

register value stored in the CPU. points to the address of the next instruction to execute in the code segment

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

data

A

segment of the process address space that is stored in the memory locations just above the code segment. stores statically-defined variables

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

heap

A

segment of the process address space that is stored in the memory locations just above the data segment. stores dynamically allocated memory. grows and shrinks at runtime during program execution (malloc and free)

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

stack

A

stored just above heap segment. stores temporary values required during function calls and pops them off once the function completes

17
Q

kernel space

A

stored just above the stack segment. reserved space for the OS and privileged code

18
Q

process identification number (pid)

A

unique number assigned to each process by the OS

19
Q

process table

A

contains an array of process control blocks and is maintained by the OS

20
Q

process control block

A

each PCB stores the context of a single process

21
Q

init process

A

the only process that exists when the OS is booted. all other processes are child processes of init

22
Q

parent and child processes

A

hierarchical structure / parent creates child

23
Q

PPID

A

PID of the process’ parent

24
Q

copy-on-write

A

on the creation of a new process, the child shares the parent’s memory address space until a modification is required. on a modification, a distinct memory page is then created for the child

25
Q

fork()

A

system call that creates a new process and gives an integer return value, which is used to differentiate between the child and parent processes that are simultaneously running the same code after the call

26
Q

exec()

A

accepts a path name to a code file as an input and allows the child to execute this new piece of code

27
Q

wait()

A

allows a process to wait for another process to finish completing, to give a signal, or to perform some other specified condition; settings are specified in the Linux man-pages

28
Q

exit()

A

terminates the process in which the exit() command is invoked

29
Q

process state

A

running: instructions for this process are being executed by the CPU
blocked: process is waiting on I/O to access, user input, or some other condition required to continue executing
ready: the process that has all it needs to run and is waiting for CPU access

30
Q

signals

A

software interrupts sent from process A to process B to communicate an event that took place in process A. Process B can be set up to watch for certain signals and respond accordingly, depending on the application being run

31
Q

superuser

A

an account with special permissions on a machine. the exact permissions depend on one’s OS

32
Q

orphan process

A

a child whose parent process has been terminated but it (the child process) is still running

33
Q

zombie process

A

if a child’s parent process has not called wait on it

34
Q

daemon process

A

system-level processes that are started to run OS-specific management tasks

35
Q

shell

A

an interface allowing the user to enter OS commands