CSF: Boring Stuff Flashcards

1
Q

Name the 6 Storage Units in Order (Smallest to Largest)

A

Bit
Byte
Kilobyte
Megabyte
Gigabyte
Terabyte

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

Name all the Components in the CPU?

A

Control Unit, ALU, Accumulator, Instruction Register, Program Counter, Memory Address and Memory Data

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

What does the CU (Control Unit) do?

A

It decodes, controls and co-ordinates everything that happens within the CPU

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

What does the Arithmetic & Logic Unit (ALU) and the Accumulator do?

A

The ALU makes calculations and makes decisions while the Accumulator holds the data being manipulated by the ALU

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

What does the Instruction Register do?

A

Holds the instruction currently being decoded by the CU

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

What does the Program Counter do?

A

Keeps track of the point we have reached in the program

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

What does the Memory Address Register (MAR) and the Memory Data Register (MDR) do?

A

The MAR points to the exact memory location in RAM of the data/instructions being fetched or written and the MDR is a ‘transfer zone’ for data being transferred between the memory and CPU

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

Name all three buses and explain them

A

Control Bus - Connects the CU to all other components and it carries timing and control signals. This bus is bi-directional as the CU sends out control signals and receives acknowledgements.

Data Bus - Allows data to be passed between the CPU and RAM. This bus is bi-directional as well meaning data can flow in both directions between the MDR and the RAM.

Address Bus - Connects the Memory Address Register to the RAM and it carries binary signals which prepares the cell to send or retrieve data. This bus is uni-directional meaning it only carries points from the MAR to the RAM,

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

How to Calculate the Number of Cells in the Address Bus?

A

2^width of the address bus

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

Is RAM volatile or not?

A

It is volatile meaning it loses all stored information when it loses power.

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

What is the role of the ROM chip?

A

Its role is to start the computer, perform the Power On Self Test (POST), load basic input and output services, then load the OS. Also, the ROM chip is non-volatile.

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

Explain cache

A

The cache is memory which sits between the RAM and the CPU. When the processor needs to read/write to a location in the processor it can first check if the data can be found on the cache and if it is it will just read/write to the cache which is much quicker.

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

What is a Device Driver?

A

A dedicated piece of software that enables Hardware to communicate to the OS. They also pass data to and from the peripheral.

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

What is Polling Approach?

A

Polling is when the processor goes round each device in turn and see’s if they require any resources

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

Name an Advantage and Disadvantage of Polling

A

Ad - Easy system to implement
Dis - Once the processor has moved on, a device has to wait on its turn again

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

What is the Interrupting Approach?

A

Interrupting is when the device goes to the processor with its request and interrupts what its doing

17
Q

Name an Advantage and Disadvantage of Interrupting

A

Ad - Devices requirements can be met much quicker
Dis - Its a complex system to implement

18
Q

What is the Interrupt Service Routine (ISR)?

A

When an interrupt request reaches the CPU, it causes the CPU to interrupt the task that it was doing and change to the ISR. Once an IRQ is accepted by the CPU, it must identify the source of the request and locate the appropriate ISR in memory. The PIC identifies the IRQ responsible for the
interrupt. When the ISR is completed, the CPU returns to the program it was executing and resumes its previous task.

19
Q

What is the stack?

A

A dedicated piece of RAM that stores all the values the CPU dumps onto it when dealing with an interrupt and when its done the contents within the Stack are popped back into the CPU

20
Q

Explain Direct Memory Access (DMA)

A

A system where the transfer of data is directly set up between the peripheral and RAM which runs without the use of the CPU. This is all set up by the DMAC.

21
Q

Advantage and Disadvantage of DMA

A

Frees the CPU to get on with other things and it completes the process of transferring data much quicker.

DMA requires both the entire bus system and the RAM and if the CPU requires the bus system or RAM while the DMAC is using it, the DMAC takes priority which could cause memory loss in the CPU.

22
Q

What does the DMAC need to set up the DMA process?

A

The memory start address, the quantity of data, the device involved and whether the transfer if an input or output.

23
Q

What are the Five Layers of the OS?

A

User Interface (UI)
File Management System
Input/Output
Memory Management
Kernel

24
Q

What is the purpose of the File Management System?

A

To organise and manage the storage of data on permanent data

25
Q

What is the purpose of the Input-Output Layer?

A

Manages communications between peripherals and CPU and if another layer needs access to a device they send a request to the I/O layer

26
Q

What is the purpose of the Memory Management Layer?

A

Shares the physical memory of the computer between processes and programs

27
Q

What does the MML do when there isn’t enough physical memory?

A

Uses virtual memory

28
Q

What is Thrashing?

A

Thrashing is when a workload cannot be held effectively within the physical memory and the constant swapping of data makes a sound. Thrashing negatively effects the computers performance

29
Q

What is the Kernel?

A

The Kernel is the most protected layer of the OS and its responsible for handling things such as multi-tasking, process control, error handling and interrupt management.