Inter-process communication and concurrency Flashcards

1
Q

IPC

A

Processes often need to communicate to perform overall task, while maintaining system integrity.

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

Common Storage

A

Processes often work together by sharing common storage, however sometimes processes start using shared data before another process is finished with it; losing data/updates.

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

Critical Region/Section

A

Where processes access shared data. Mutual exclusion is needed in these sections

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

Mutual Exclusion by Disabling Interrupts

A

No interrupts = no clock interrupts and no other process can be scheduled giving exclusive access to CPU.

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

Mutual exclusion with busy waiting

A

Busy waiting = loop doing nothing in program code.

Set while loop condition to true when in critical region, then false when leaving critical region

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