Vault sync: 2022-01-26 14:24:31
This commit is contained in:
parent
b08b0f6a36
commit
4f9e9f52f4
@ -59,13 +59,24 @@ when program issues IO command, cpu is granted to the next program.
|
||||
|
||||
**Parallel**: If the computer has multiple CPU's or Cores, the programs run in parallel. -> **Physically simultaneous**
|
||||
|
||||
![[conc-parallel.png]]
|
||||
|
||||
# Sharing Resources
|
||||
Sometimes diffrent programs (or same program) may share resources.
|
||||
Sometimes different programs (or same program) may share resources.
|
||||
|
||||
If data is **sequentially** accessible, programs should take turns accessing resource/data.
|
||||
|
||||
Fast shared resource access can create **concurrent** access.
|
||||
|
||||
# Concurrency
|
||||
Unlike parallelism, concurrency is not always about running faster.
|
||||
- Single cpu/core computers may also use concurrency.
|
||||
|
||||
Useful for:
|
||||
- App responsiveness.
|
||||
- Processor utilization (hide IO time)
|
||||
- Failure isolation
|
||||
|
||||
|
||||
|
||||
|
||||
|
BIN
conc-parallel.png
Normal file
BIN
conc-parallel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 360 KiB |
Loading…
x
Reference in New Issue
Block a user