Operating Systems Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What are the three steps of the instruction cycle?

A

Fetch, Decode, Execute

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

What is it called when the steps of the instruction cycle are happening concurrently?

A

Pipelining

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

Describe virtualization (in regards to Operating Systems).

A

When an operating system provides easy to use interfaces and representations of physical resources.

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

What is the system call interface?

A

A way for userspace programs to call into the kernel.

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

What is the virtual address space of a process?

A

It is an abstraction provided by the operating system to a user process. The process has its own full address space, which the operating system handles mapping to actual physical resources.

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

Describe the difference between concurrency and parallelism.

A

Concurrency is when two or more different tasks are sharing time on a single processor.

Parallelism is when two or more different tasks have their own processor and can run completely independently of each other.

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

What is a thread?

A

It is a way for code to run concurrently in a process.

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

What is the word for when an operation happens “all at once”, and thus is devoid of race conditions?

A

Atomicity.

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

What physical resource does persistent memory refer to?

A

Disk

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

What physical resource does volatile memory refer to?

A

RAM

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

How does an operating system virtualize persistent memory?

A

A file system.

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

What does a file system need in order to write to disk?

A

A device driver.

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

What happens when a system call is made?

A

A trap (type of interrupt) is generated, and the corresponding trap handler code is ran within the kernel.

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

What is the purpose of address space randomization?

A

To attempt to protect against certain types of attacks that take advantage of knowing where certain data exists in memory.

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

What program error does stack smashing target?

A

Stack buffer overflow.

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

How does stack smashing work?

A

An attacker causes a stack buffer overflow which can allow them to inject malicious code into the application.

17
Q

What is a Cross Compiler?

A

A compiler that runs on a host system, but generates binaries for a different system (the target).