diff --git a/School/Analyse/Periode 2/Week 1.md b/School/Analyse/Periode 2/Week 1.md index 29055c1..5a5f1d8 100644 --- a/School/Analyse/Periode 2/Week 1.md +++ b/School/Analyse/Periode 2/Week 1.md @@ -42,5 +42,19 @@ Were waiting a lot on IO time to finish, very inefficient. We can solve this usi # Multitasking To speed up computers we overlap CPU time and IO Time. -While a program waits for IO, o +While a program waits for IO, other programs can use CPU. This solution requires multiple programs to be loaded into memory, hence the name multitasking. + +Multitasking overlaps IO time of a program with CPU time of other program. + +## Multitasking with multiple processors +If computer has a single CPU, programs should take turns in using it. + +If computer has multiple CPUS, each task can be given a different CPU. + - If the number of tasks is more than available cpu's, we still take turns. + +when program issues IO command, cpu is granted to the next program. + + + +