Reminder Items Flashcards
Program
A list of Instructions for a computer to execute
Data
Everything that is not an instr
What does it mean to run the program?
executing program code instruction after instruction)
Computer component that executes program?
CPU
Running Program is stored here, what else is stored there?
RAM stores currently running programs and data of a program
RAM
Random access means- it takes roughly the same amount of time to access a piece of data, no matter where this piece of data is stored physically on the memory device.
Volatile - once power supply is off all the data in RAM memory is erased.
Slow compared to the CPU.
Memory Stall
an undesirable scenario when CPU pauses and waits for the necessary data to be delivered from RAM memory.
Long-Term Storage?
Hard Disk- non volatile
Executable File
An executable file is a file that contains machine code or bytecode that can be directly executed by the computer’s CPU or an interpreter without needing further compilation.
How speed of CPU, RAM and hard disk compare to each other?
CPU, RAM Hard Disk fastest to slowest
Cache Memory
special device between CPU and RAM, at acts as a buffer for a slower, larger memory. Between the CPU and RAM
- Speeds up interactions between CPU and RAM.
ROM memory
READ-Only memory
a type of non-volatile memory that stores permanent data and instructions for a computer to start up and run.
Machine Cycle
sequence of steps that the CPU takes to execute one single instruction.
3 Steps Of Machine Cycle
Fetch command: retrieving next instruction from RAM memory and stores it in the program counter
Decoding: CPU decodes the instruction to determine what operation needs to be performed
Execution: CPU executes the instruction
What Frequency measures? What is the measurement unit of frequency?
(Hz = times/second)
Measures CPU frequency or clock rate. How many cycles per second
CPU Clock
a device (hardware) that issues synchronization pauses for all other CPU components.
When pause arrives, each component does one unit of WORK.
CPU Frequency
CPU frequency is clock speed, measures how many cycles CPU can complete in one second.
Cycles/ seconds
CPU Core
little CPU, each one is an individual processor.
our cores, allowing it to process four tasks (or threads) at the same time. (can boost performance w/ apps that are designed to utilize multiple CPU cores)
How does memory look like
linear array of bytes
What is byte? What is bit? How many bits are in a byte?
BYTE- 8 bits
Bit - Binary Digit in base 2 (either 0/1) they are components of info
Memory Address
Specific bytes that refer to a specific place in RAM
What is the memory address of a larger chunk of memory?
Typically expressed in hexadecimal
Length of memory address
2^n where n= length of memory address
How long should be memory addresses to address a given amount of memory?
log2 ( N) where n- given amount of memory in bytes