Workshop 6 Section 1 Flashcards

1
Q

What are 4 design issues of concurrency?

A

Inter-process communication, sharing/competing for resources, synchronization of processes, scheduling of processor time allocation to processes.

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

Problem with shared data a concurrency?

A

Data incoherence - where data is inconsistent and incorrect.

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

What are three degrees of awareness concurrent processes have of each other?

A

Processes unaware: compete for resources, problems - mutual exclusion, deadlock, starvation
Processes indirectly aware: share access to object, cooperate, problems - me, deadlock, starvation, data coherence
Aware of each other: cooperate by communication, problems - deadlock and starvation.

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

What is mutual exclusion?

A

Processes access resource on at a time.

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

Why is critical section?

A

The part of the process that tries to use critical resource.

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

What is the purpose of process synchronization?

A

To ensure only one process enters a critical section for resource at any one time.

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

What is deadlock?

A

The permanent blocking of a set of processes that compete or communicate.

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

Where do deadlocks most commonly happen?

A

In multi-tasking environments.

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

What is starvation?

A

When a process waits for resource but never gets it.

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

What six requirements must be met for mutual exclusion to happen?

A

1 process at a time in CS, process that halts in non-CS musn’t interfere with others, no deadlock or starvation allowed, process must not be delayed access to CS if no other process using it, no assumptions on speeds or number of processes, process remains inside its CS for finite time.

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

What three approaches to mutual exclusion?

A

Software, hardware, OS.

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

What is concurrency?

A

Apparent simultaneous execution of processes, single processor systems do it by timeslice cpu, often requires cooperative processes to access shared data.

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