From 0c3af947ecbad3db49f4566679ae468d41befca5 Mon Sep 17 00:00:00 2001 From: Nick Leeman Date: Wed, 26 Jan 2022 13:54:31 +0100 Subject: [PATCH] Vault sync: 2022-01-26 13:54:31 --- School/Analyse/Periode 2/Week 1.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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. + + + +