Lectures 7 - 10 Flashcards

1
Q

What do threads provide?

A

A separate thread of execution

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

Where and when do threads work?

A

They operate concurrently within the processor

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

What functions do threads operate on?

A

They operate on small individual functions which are a subset of a larger process.

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

What are some of the functions that the OS has in order to deal with multi tasking

A
  • Interrupts
  • Pipelining
  • Superscalers
  • Simultaneous Multi Threading (SMT)
  • Symmetric and chip level multi threading (SMP/CMP)
  • Direct memory access
  • Graphics Processing Units (GPU’s)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What do interrupts ‘tell’ the CPU?

A

That something of higher importance has happened

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

What are the steps taken by the CPU when an interrupt is detected?

A

1: The event causes an interrupt request (IRQ)
2: A signal is sent to the processor through a reserved line
3: The processor saves its current state and loads the interrupt handler for that interrupt
4: Once the interrupt has been handled, the processor returns to its original task.

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

What is pipelining?

A

When a process is broken down into a small series of steps, with which different circuitry does different parts

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

What does pipelining allow?

A

It allows an instruction to be fetched while two others are being decoded and executed at the same time

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

What happens in pipelining when a condition is encountered?

A

A likely outcome is selected so that it can be ready to be processed. However, if the unlikely outcome happens then the likely outcome will have to be wiped from memory.

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

What is superscaling?

A

When a CPU uses its idle execution units (e.g. ALU) to complete more than one instruction per clock cycle

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

What are superscalers often used in conjunction with?

A

Pipelines

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

Why are superscalers often used with pipelines?

A

As it allows multiple instructions to be processed per pipeline instruction

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

What three things does a computer need to know to access data on a HDD?

A

What cylinder it is on
Which head is currently in use
Which sector it is in

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

What do sectors contain?

A

They contain (in order):

  • A header
  • Gap
  • Data
  • ECC
  • Gap
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does the header contain in a sector?

A

Contains addresses and error checking info

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

What are the gaps for?

A

To allow the head to change operation

17
Q

What is the ECC?

A

Error Checking Code

18
Q

What does LBA stand for?

A

Logical Block Addressing

19
Q

What is the point of LBA?

A

It is how the OS knows where things are in a HDD (or other secondary storage device)

20
Q

What is the formula for LBA?

A
((C x HPC) + H) x SPT + (S-1)
Where: 
C = Cylinder
H = Head
S = Sector Number
HPC = Heads per cylinder
SPT = Sectors per Track
21
Q

What does RAID stand for?

A

Redundant Array of Independent Disks

22
Q

What is RAID?

A

It is a technique where data is split across multiple disks to improve reliability of a system

23
Q

What does RAID 0 do?

A

It strips the data: It spreads the data between all of the allocated disks.

24
Q

What does RAID 1 do?

A

It makes multiple disks contain the same data so that if one breaks then the data is still secure

25
Q

What does RAID 5 do?

A

It distributed the data across multiple disks along with their parity, meaning that if one of the disks were to fail then the other levels of data are not lost.