Algorithm Concurrency - Control Problems Flashcards

1
Q

Atomic Operation

A

A function or action implemented as a sequence of one or more instructions that appears to be indivisible.

No other process can see an intermediate state or interrupt the operation

The sequence of instructions is guaranteed to execute as group or no execute at all.

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

Critical Section

A

A section of code within a process that requires access to shared resources that must not be executed while another process is in a corresponding section of code.

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

A deadlock

A

A situation in which two or more processes are unable to proceed because each is waiting for one or the others to do something

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

Livelock

A

A situation in which two ore more processes continuously change their states in response to changes in the other process(es) without doing any useful work.

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

Mutual Exclusion

A

The requirement that when one process is in a critical section that accesses shared resources, no other process may be in a critical section that accesses any of those shared resources.

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

Race condition

A

A situation in which multiple threads or processes read and write a shared data item and the final result depends on the relative timing of their execution

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

Starvation

A

A situation in which a runnable process is overlooked indefinitely by the scheduler, although it is able to proceed, it is never chosen.

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