Vault sync: 2022-01-26 15:04:31

This commit is contained in:
Nick Leeman 2022-01-26 15:04:31 +01:00
parent c3b7a95346
commit 9839a21836
3 changed files with 11 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

View File

@ -78,11 +78,19 @@ Useful for:
- Failure isolation (interleaving multiple tasks, a exception on one task will not bring down the rest)
# 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB