Final Exam Flashcards

1
Q

How does Prime and Probe work? What’s the difference between it and Flush and Reload

A

Prime - Accesses all cache ways, mark time spent on access. Probe - Perform Prime again, if it’s faster then it’s not data we want. If it’s slower, then we GOT IT

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

First Fit Allocation

A

Iterate through blocks until you find one with enough free space.

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

Explicit vs. implicit Free list

A

Implicit Free list has a header for every block, Explicit Free List has a header for free blocks and Faster allocation when Heap is full/low fragmentation.

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

Where do new/modified pointers go in a tri color garbage collection

A

Grey box

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

Which boxes are removed most frequently in general garbage collection

A

Youngest generation

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

How do boxes go from younger to older generations?

A

When they get full, garbage collection -> Move it to the next generation.

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

When are oldest generation boxes garbage collected?

A

When they get full

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

Do all processes have a parent?

A

Not Init, it has no parent but the rest do

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

What signal do Childs send to say they died?

A

Sigchild

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

How to kill a process?

A

Send it a sigkill signal

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

Does every object have a viable?

A

No, not every class has a viable, non virtual ones don’t.

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

Do vtables contain non virtual methods?

A

No they only contain virtual functions.

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

Does every class have a vtable?

A

Only classes with virtual member functions have a vtable

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

What does garbage collection remove?

A

Unreachable data via pointers.

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

Cache ways vs cache sets

A

Cache sets are cache lines with the same index.

Ways are number of lines to iterate through

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

Requirements for flush and load and why?

A

Must have the same physical space in cache for collision, so it can time the load to the flushed address and acquire the bit.

17
Q

How does Flush and Reload work

A

Flush, Wait, Measure time to reload that line, fast -> access, slow -> no access, Repeat.

18
Q

How to get data from Flush and Reload accesses?

A

Has two lines for 0 and 1, if it’s quicker to access one or the other, that determines which one it is.

19
Q

Why does Prime and Probe not need to share the same physical space?

A

Spy can just prime some lines for the address space of the victim, victim must load to one of those lines.

20
Q

What is the connection between Hark Links and Inodes

A

Connect directly to the file’s Inode, stay connected even if it moves, contribute to reference count. (Not To Directory)

21
Q

What is a Soft Link

A

Contains a separate Inode Value that points to the original file, breaks when file deleted, only file path.