diff --git a/School/Analyse/Periode 2/Week 1.md b/School/Analyse/Periode 2/Week 1.md index 49e212b..d4fdc8d 100644 --- a/School/Analyse/Periode 2/Week 1.md +++ b/School/Analyse/Periode 2/Week 1.md @@ -24,4 +24,15 @@ ADD: add numbers SUB: subtract numbers JMP: transfers program control flow to the indicated instruction +![[example-machine-lang.png]] +# CPU Time vs IO Time +Total time required to run program is: CPU Time + IO Time + +Typical time to read from IO: 20ms +Typical time to run instruction: 20ns +CPU can execute up to 200 million instructions while a block is read from a hard disk. + +Conclusion: While I/O is executed, CPU is idling. + +![[cpu-vs-io.png]] diff --git a/cpu-vs-io.png b/cpu-vs-io.png new file mode 100644 index 0000000..e877bdf Binary files /dev/null and b/cpu-vs-io.png differ diff --git a/example-machine-lang.png b/example-machine-lang.png new file mode 100644 index 0000000..5b39430 Binary files /dev/null and b/example-machine-lang.png differ