Operating Systems W1 - W2 Concurrency Flashcards

1
Q

concurrency

A

multiple tasks which start, run, and complete in overlapping time periods, in no specific order. (one chef in the kitchen)

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

Parallelism

A

multiple tasks of the same task that literally run at the same time on a hardware with multiple computing resources like multi-core processor. (e.g Another chef in the kitchen)

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

Distributed system

A

computing environment in which various components are spread across multiple computers (or other computing devices) on a network

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

address space

A

This is the area of contiguous virtual addresses available for executing instructions and storing data.

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

thread libraries

A

provides the programmer with an Application program interface for creating and managing thread

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

non-determinism

A

an algorithm that, even for the same input, can exhibit different behaviours on different runs, as opposed to a deterministic algorithm.

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

critical section

A

a section of code that must not overlap.

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

Interference/race conditions

A

when concurrent threads affect one another’s behaviour, which is called interference.

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

What are the registers?

A

A piece of memory can only be found in the CPU to allow the CPU faster access to the memory and quickly retrieve the information

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

program status word (PSW)

A

register that performs the function of a status register and program counter, and sometimes more.

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

What are privileged instructions?

A

Code that runs in the kernel mode can use privileged instructions (IN, OUT).

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

Machine code

A

Runs while the CPU is in user mode, it cannot use privileged instructions.

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

Kernel mode

A

a computer program at the core of the computer’s operating system and has complete control over everything in the system.

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

Sequential system

A

Computations - or parts of the computation are executed to completion, one after the other.

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

Data race

A

It can occur when two or more threads concurrently access the same memory location.

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

Mutual exclusion(Mutex) pencil example

A

The only person with a pencil in hand can view or modify the list. Protects from data races but not from race conditions

17
Q

POSIX THREAD

A

A low-level library for thread programming is often used in the C programming language.

18
Q

Concurrent program

A

non-deterministic, which means that different orders of execution may lead to different outcomes.