Presentation 1
Presentation 1
• Random Access Memory (RAM) is a type of volatile memory that temporarily holds data and
instructions that the CPU needs to access quickly while a computer is running. It plays a crucial role in
determining the speed and performance of a system by allowing the CPU to rapidly retrieve and execute
instructions without waiting for slower storage devices.
• Key Characteristics of RAM
• Volatile Memory: RAM is volatile, meaning it only retains data while the computer is powered on. Once
the power is turned off, all data in RAM is erased. This is why unsaved work can be lost if a system shuts
down unexpectedly.
• Random Access: In RAM, data can be accessed in any order, making it "random access." This allows
the CPU to access data at high speeds without needing to read sequentially, unlike some storage
media.
• Temporary Storage: RAM holds the data that the system is actively using or processing. When you
open an application, it loads from secondary storage (like an HDD or SSD) into RAM for fast access.
• Data Transfer Speed: RAM has a very high data transfer speed, typically measured in megabytes per
second (MB/s) or gigabytes per second (GB/s), and directly influences the overall speed and
responsiveness of the system.
Types of RAM
• Dynamic RAM (DRAM):
• Most common type of RAM used in computers and other devices.
• DRAM stores data using capacitors that need constant refreshing to retain data, as capacitors tend to lose charge
over time.
• Used for main memory in computers due to its lower cost and higher density, though it is slower than some other
types.
• Static RAM (SRAM):
• Faster and more reliable than DRAM, as it uses transistors to store bits without the need for refreshing.
• SRAM is used mainly for cache memory (close to the CPU) due to its high speed but is more expensive and takes up
more space than DRAM.
• Synchronous DRAM (SDRAM):
• Operates in sync with the system clock, allowing for coordinated data transfer.
• Enhances speed by synchronizing data transfer with the CPU clock cycles.
• Includes variations like DDR SDRAM (Double Data Rate SDRAM), DDR2, DDR3, DDR4, and DDR5, with each new
generation providing faster speeds and lower power consumption.
• Graphics RAM (GDDR):
• A type of specialized RAM used in graphics cards for handling the large amounts of data required for rendering
graphics.
• Variants like GDDR5, GDDR6, and GDDR6X provide high data bandwidth for demanding tasks such as gaming and
video editing.
How RAM Works
• When you open an application or file, your computer copies the
necessary data from the storage drive (e.g., SSD or HDD) to the
RAM. The CPU can then quickly access this data from RAM while
processing tasks. Once you close the application or file, the data
is cleared from RAM to free up space for other tasks.
Importance of RAM in Computing
• Performance: RAM is essential for ensuring a computer's speed
and performance. Systems with more RAM can handle more
complex tasks and run multiple applications smoothly.
• Efficiency: Efficient RAM usage can significantly improve
productivity, as data-intensive applications (like video editing
software) require large amounts of RAM.
• Gaming and Graphics: High-speed and large-capacity RAM is
crucial for gaming and graphic rendering, where quick access to
large files is necessary for smooth visuals.
Read-Only Memory (ROM)
• Process Management:
• Handles creation, scheduling, and termination of processes.
• Manages multitasking by allocating CPU time to processes efficiently.
• Memory Management:
• Allocates and deallocates memory space as needed by applications.
• Tracks memory usage and ensures no overlap or leakage.
• File System Management:
• Organizes, stores, retrieves, and manipulates files on storage devices.
• Maintains a hierarchical directory structure.
• Device Management:
• Manages input and output devices (e.g., keyboard, mouse, printers).
• Provides drivers to interact with hardware peripherals.
• Security and Access Control:
• Protects data and resources from unauthorized access.
• Implements user authentication and permissions.
Functions of an Operating System