Vault sync: 2022-01-26 13:34:31

This commit is contained in:
Nick Leeman 2022-01-26 13:34:31 +01:00
parent 60fd19d5e2
commit 00bf4325b0
3 changed files with 11 additions and 0 deletions

View File

@ -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]]

BIN
cpu-vs-io.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

BIN
example-machine-lang.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB