Vault sync: 2022-01-26 15:04:31
This commit is contained in:
parent
c3b7a95346
commit
9839a21836
BIN
Pasted image 20220126150032.png
Normal file
BIN
Pasted image 20220126150032.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 360 KiB |
@ -78,11 +78,19 @@ Useful for:
|
|||||||
- Failure isolation (interleaving multiple tasks, a exception on one task will not bring down the rest)
|
- Failure isolation (interleaving multiple tasks, a exception on one task will not bring down the rest)
|
||||||
|
|
||||||
# Abstraction in Concurrency
|
# Abstraction in Concurrency
|
||||||
Concurrent program consists of a finite set of (sequential) processes.
|
**Concurrent program** consists of a finite set of (sequential) processes.
|
||||||
|
|
||||||
|
Processes are written using a finite set of **statements**.
|
||||||
|
|
||||||
|
Execution of concurrent program proceeds by executing a sequence of the statements obtained by **arbitrarily interleaving** the statements from the processes.
|
||||||
|
|
||||||
|
![[abstraction-in-conc.png]]
|
||||||
|
|
||||||
|
p1->q2->p2->q1 is not possible. because we are breaking the order of execution of program q. q must execute q1 before q2.
|
||||||
|
|
||||||
|
# Atomic statement
|
||||||
|
|
||||||
Processes are written using a finite set of statements.
|
|
||||||
|
|
||||||
Execution of concurrent program proceeds by exec
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
BIN
abstraction-in-conc.png
Normal file
BIN
abstraction-in-conc.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 175 KiB |
Loading…
x
Reference in New Issue
Block a user