diff --git a/School/Analyse/Periode 2/Week 1.md b/School/Analyse/Periode 2/Week 1.md index 910b2a0..c68c724 100644 --- a/School/Analyse/Periode 2/Week 1.md +++ b/School/Analyse/Periode 2/Week 1.md @@ -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.