IT 231: IT and Application
By the end of this session, you will be able to:
How does a computer run a program like a web browser or a game?
1. Storage: The program waits on your slow, long-term storage (SSD/HDD).
2. Memory (RAM): When you open it, it's copied into fast, temporary RAM.
3. CPU: The CPU then takes instructions from RAM to actually run the program.
Think of it as moving ingredients from the pantry (storage) to the kitchen counter (RAM) so the chef (CPU) can cook.
Data moves through a hierarchy based on speed and proximity to the CPU.
(SSD, HDD)
Slowest
Long-term, permanent storage.
(DDR4, DDR5)
Fast
Workspace for active programs.
Fastest
Immediate processing area.
Once a program is in RAM, the CPU takes over. It runs a continuous loop to process instructions.
This process is called the Fetch-Decode-Execute Cycle. It's the fundamental operation of the CPU, repeated billions of times per second.
The CPU's Control Unit fetches the next instruction from its memory address in RAM.
"What is the next thing I need to do?"
The Control Unit decodes the instruction, figuring out what operation it needs to perform (e.g., add, subtract, move data).
"What does this instruction mean?"
The Arithmetic Logic Unit (ALU) performs the operation, like a calculation or moving data to a register.
"Okay, I'm doing it now!"
This cycle repeats continuously, allowing your computer to function.
Let's compare the cycle to a simple, everyday task.
How does this apply to using a digital wallet like eSewa or Khalti?
The data flow also works in reverse.
When you are typing a document, where are the words being stored before you hit "Save"?
Answer: In RAM! 💡
Crucial Point: RAM is volatile (temporary). If the power goes out, all your unsaved work is lost. Hitting "Save" writes the data from RAM back to your non-volatile secondary storage (SSD/HDD) for safekeeping.
Let's review the core concepts of CPU and memory interaction.
Any questions?
Next Topic: Unit 3.7: Input and Output Devices of a Computer | IT 231 Notes