Holds the absolute address in memory of where the process space begins
2
New cards
Program Counter - CPU register
Holds the relative address of the next instruction
3
New cards
Instruction Register - CPU register
Holds the current instruction that is being executed
4
New cards
Accumulator - CPU register
Temporary storage that holds the result of an instruction
5
New cards
Memory Address Register (MAR) - CPU register
: Holds the address where data is to be read from or written to
6
New cards
Memory Buffer Register (MBR) - CPU register
Holds the data that is to be read/written in memory
7
New cards
User Registers (URX) - CPU register
Permanent storage that persists between cycles, is faster than main memory ■ UR0: User Register 0 ■ UR1: User Register 1 ■ etc.
8
New cards
I/O Address Register (IOAR) - CPU register
Holds the memory address used to communicate with external device
9
New cards
I/O Buffer Register (IOBR) - CPU register
Holds data to be read from or written to for an external device
10
New cards
logical address
the pc alone gives us this
11
New cards
physical address
the base + pc gives us this
12
New cards
program
is an executable file which gives instructions to an operating system.
only occupies space on a disk
13
New cards
process
s is an instance of a program which is active in the system.
requires more resources than just disk space
has its instructions and its data stored in the main memor
14
New cards
Explain the benefits of running programs concurrently
To reduce process latency: - Running multiple processes \____________ where the cpu constantly switches between processes that are stored in the cache
The OS performs a context switch when it swaps out one active process for another
When a process is swapped out during a context switch, information about its state is stored in a process control block
The process control blocks are stored in a process table.
The size of the process table gives us the degree of \______________, or the degree of multiprogramming for an OS
15
New cards
Explain why having multiple cores on a CPU is helpful.
You are able to increase concurrency and running two programs in one clock cycle
16
New cards
How many bits are in a byte?
8
17
New cards
How many distinct addresses can be represented with 32 bits?
2^32
if maximum address: (2^32)-1
18
New cards
Explain what happens when an interrupt occurs.
The interrupt is processed immediately as soon as they happen. Also, control is handled to the OS, and the OS decides how the interrupt is utilized.
19
New cards
What is the purpose of the Process Control Block (PCB)?
Used to handle processes only, and nothing else.
When a process is swapped out during a context switch, information about its state is stored in a \_____ \_____ \__________
20
New cards
When is control given to an operating system's kernel code
To activate kernel mode, a trap instruction is executed by invoking a system call. This transfers control from the user program to specially protected kernel code which cannot be modified by users.
21
New cards
Can a child process modify the memory of the parent process?
No, a child and parent process are stored into two different memory spaces
A child thread can modify a parent thread because they are in the same memory space
22
New cards
List these items in order of which is fastest to access by the CPU: • L2 Cache • CPU Registers • Disk Memory • L1 Cache • L3 Cache • Main Memory