Vault sync: 2022-01-26 14:19:31
This commit is contained in:
parent
0580f26359
commit
b08b0f6a36
@ -55,7 +55,16 @@ If computer has multiple CPUS, each task can be given a different CPU.
|
||||
when program issues IO command, cpu is granted to the next program.
|
||||
|
||||
# Concurrent vs Parallel
|
||||
Concurrent: Fast switching from a program to the next program (context switch) can create the illusion that they are being executed at the same time. -> Logically Simultaneous
|
||||
**Concurrent**: Fast switching from a program to the next program (context switch) can create the illusion that they are being executed at the same time. -> **Logically Simultaneous**
|
||||
|
||||
**Parallel**: If the computer has multiple CPU's or Cores, the programs run in parallel. -> **Physically simultaneous**
|
||||
|
||||
# Sharing Resources
|
||||
Sometimes diffrent 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.
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user