MMU, RISC+CISC, Arbitrary Code, Multitasking Flashcards

1
Q

Memory Management Unit (MMU)

A

Handles address translations and memory addressing
Checks for access permissions
Provides security features

A component of the CPU that checks that a memory access is valid.

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

Reduced Instruction Set Computer (RISC)

A

Focused on software/compiler to handle efficient register usage
1 instruction per code
Register-to-register design

Focused on small and simple instructions
Faster execution
Used for pipelining instructions and optimizing registers

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

Complex Instruction Set Computer (CISC)

A

Focused on hardware and is easy to program
Several clocks per instruction
Memory-to-memory design

Focused on supporting complex instructions that perform operations on an instruction. This reduces the amount of instructions that a task needs

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

Arbitrary code

A

Allows code to be inserted into a system, leading to unauthorized code being executed.

Leads to security risks

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

Multitasking

A

Running multiple tasks at the same time, and lowers waiting time

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

Time sharing

A

The processor switches between different tasks.
Where the CPU’s time is shared with multiple users or processes. Used to insert multitasking.

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

Direct Memory Access (DMA)

A

Transfers data between PC components without the need of the CPU

Only needs the CPU to specify the memory address for data transfer

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

Principle of locality (PoL)

A

Memory access tends to be together, instructions are likely ordered, data is likely local, and objects near each other are likely accessed at the same time

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

How does PoL help caching make a CPU more efficient?

A

Cache is fast and is stored in the CPU.
Storing data/instructions in small clusters reduces the amount of times the CPU has to fetch

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

Running (Task state)

A

The task being executed right now. Only 1 per logical CPU core

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

Ready (Task state)

A

The task is not running, but could (Allowed by the scheduler)

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

Waiting (Task state)

A

The task can’t run. Waiting for I/O data

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