Week 4: Memory, Stacks and Computing Architectures Flashcards

1
Q

What do we call storing data onto the stack?

A

Pushing

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

What do we call recalling data off of the stack?

A

Popping

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

What are hardware stacks made up of?

A

Shift registers

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

What are the different types of memory?

A

ROM, RAM and flash memory.

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

What are the trade-offs using RAM vs ROM?

A

RAM is a form of read-and-write memory that can be accessed without rewriting it.

ROM is read-only memory and by default isn’t to be changed because it holds hardware info like the BIOS.

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

Stacks

A

A data structure used for efficiently storing and recalling data.

It uses the principle of first in last off (FILO)

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

What are the two common computing architectures?

A

Von Neumann

Harvard

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

Polling and interrupts are two methods for the ___ to ___

A

CPU

Switch between different tasks

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

What type of memory is used in USB thumbs drives? Why shouldn’t we rely on this for critical storage?

A

Flash memory.

Damages the insulators in the thumb drive to write to it, meaning that it has a limited lifespan of around 30k writes.

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

What are the differences between Von Neumann and Harvard computing architectures?

A

Von Neumann stores the data and control bits in the CPU, but are separated in the Harvard architecture.

Processing speeds of Harvard are greater with more security, but Von Neumann is more flexible and makes use of a stack, therefore multitasking.

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

What is cache memory and what’s its primary role?

A

Cache memory is storing frequently used memory nearby in high-speed memory locations.

This means that the CPU can locate and decrease the access times which in turn increase the processing speed of the system.

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

What are 4 common examples of an interrupt?

A

Keyboard/mouse, clock, network packets and ALU errors.

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

Interrupt

(Giving food to crying baby)

A

The response to a device seeking attention from the CPU. This is where a current task is pushed onto the stack for another to be worked on.

Continues until the task is completed, then the routine handler tells where to return to.

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

Where is the BIOS stored?

A

In the ROM

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

When booting the OS, where will the BIOS be stored?

A

It will be loaded onto the RAM because it’s faster and is able to randomly access the parts of the BIOS that it needs to boot the computer

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

What’s the typical boot process of a PC?

A

OS on Hard Disk -> OS is loaded onto computer memory (RAM) when computer turns on -> Once main part of OS, Kernel, has control it loads the rest of OS -> BIOS from the ROM loads and manages ‘boot process’ -> OS has control and BIOS translates between peripherals and OS.