Algorithm Concurrency Flashcards

1
Q

Atomic operation

A

a function or action implemented as a sequence of one or more instructions which is indivisible, the sequence of instruction is guaranteed to execute as group

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

Critical selection

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

Deadlock

A

Two or more processes are unable to proceed because each is waiting for one of 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 or 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

Requirement 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

The “loser” of the race, who performs the last update determine the final value of a shared data item

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

Resource competition

A

Concurrent processes come into conflict when they are competing for the same resource

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

Critical section/ Mutual Exclusion

A

Process B may attempt to enter the critical region whilst A is in the critical region, this will result in B being blocked

Process B will be able to enter the critical section once process A leaves the critical region.

A process can finish the execution of its critical section, even if it is pre–empted or interrupted.

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

Problems of mutual exclusion

A

Deadlocks - Processes wait forever for each other to free resources

Starvation - A process waits forever to be allowed to enter its critical section

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