Serial vs. Parallel Communication

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Which characteristic primarily distinguishes serial communication from parallel communication?

  • The type of connectors used in the interface
  • The voltage levels used for signaling
  • The clock speed of the data transfer
  • Whether data is sent one bit at a time or multiple bits simultaneously (correct)

Parallel communication is generally more suitable for long-distance data transfer due to its resistance to signal degradation.

False (B)

Name two advantages of using Solid State Drives (SSDs) over Hard Disk Drives (HDDs) in secondary storage.

Faster read/write speeds, higher durability

In the memory hierarchy, the type of memory that is directly accessible by the CPU and used for immediate processing is called __________.

<p>Registers</p>
Signup and view all the answers

Match the following memory types with their primary characteristics:

<p>Cache Memory = Small, fast memory used for frequently accessed data Main Memory (RAM) = Volatile memory used for active programs and data Secondary Storage (HDD/SSD) = Non-volatile storage for long-term data retention Registers = Fastest memory inside the CPU used for immediate processing</p>
Signup and view all the answers

What is the primary purpose of cache memory in a computer system?

<p>To store frequently accessed data for quick retrieval by the CPU (A)</p>
Signup and view all the answers

Virtual memory increases system performance because it is faster than physical RAM.

<p>False (B)</p>
Signup and view all the answers

Define 'paging' in the context of memory management.

<p>Dividing memory into fixed-size blocks called pages</p>
Signup and view all the answers

The memory management scheme that divides each program into logical segments of varying sizes is known as __________.

<p>Segmentation</p>
Signup and view all the answers

Which of the following is a disadvantage of dynamic partitioning in memory allocation?

<p>Leads to external fragmentation (D)</p>
Signup and view all the answers

Garbage collection is a manual process that programmers must implement to free up unused memory in high-level languages.

<p>False (B)</p>
Signup and view all the answers

What is the role of memory swapping in operating systems?

<p>Moving processes between RAM and secondary storage</p>
Signup and view all the answers

The technique of assigning access rights to different pages in virtual memory, ensuring that only certain programs or users can access sensitive areas, is part of __________.

<p>Memory Protection</p>
Signup and view all the answers

Which memory type is non-volatile and retains data even when the power is turned off?

<p>Flash Memory (C)</p>
Signup and view all the answers

SRAM (Static RAM) requires constant refreshing to retain data, just like DRAM (Dynamic RAM).

<p>False (B)</p>
Signup and view all the answers

Briefly describe the purpose of the memory hierarchy in computing systems.

<p>Balance cost, speed, and capacity of memory</p>
Signup and view all the answers

The memory level in modern CPUs that is often shared among multiple cores and is larger and slower than L1 and L2 caches is called __________ Cache.

<p>L3</p>
Signup and view all the answers

What is the primary characteristic of tertiary storage?

<p>Large storage capacities for archival purposes (C)</p>
Signup and view all the answers

Ethernet is an example of parallel communication because it sends data across multiple wires simultaneously.

<p>False (B)</p>
Signup and view all the answers

In memory protection, the __________ register holds the starting address of a segment, while the __________ register holds the size of the segment.

<p>base, limit</p>
Signup and view all the answers

Flashcards

Serial Communication

Sends data one bit at a time over a single channel.

Parallel Communication

Sends multiple bits at the same time over multiple channels.

Primary Memory

Memory directly accessible by the CPU; fast but loses data when power is off.

Secondary Memory

Memory for long-term data storage; retains data when power is off.

Signup and view all the flashcards

RAM (Random Access Memory)

Volatile memory that temporarily stores data the CPU actively uses.

Signup and view all the flashcards

DRAM (Dynamic RAM)

Slower and requires constant refreshing to retain data.

Signup and view all the flashcards

SRAM (Static RAM)

Faster and retains data as long as power is supplied.

Signup and view all the flashcards

Cache Memory

High-speed memory located between the CPU and RAM for quick data retrieval.

Signup and view all the flashcards

L1 Cache

Fastest, smallest cache memory integrated directly into the CPU chip.

Signup and view all the flashcards

L2 Cache

Larger cache, may be on or close to the CPU, slower than L1.

Signup and view all the flashcards

L3 Cache

Shared cache among cores, slower than L1 and L2, much larger.

Signup and view all the flashcards

ROM (Read-Only Memory)

Non-volatile memory that data is retained even when the power is off.

Signup and view all the flashcards

Flash Memory

Portable data storage and transfer using flash based, non-volatile memory.

Signup and view all the flashcards

Virtual Memory

Uses secondary storage as an extension of primary memory (RAM).

Signup and view all the flashcards

Paging

Divides memory into fixed-size pages and swaps them between RAM and storage.

Signup and view all the flashcards

Swapping

Data from RAM that isn't actively used is moved to hard drive to free up space

Signup and view all the flashcards

Segmentation and Paging Protection

Memory addresses are protected by using segmentation or page tables.

Signup and view all the flashcards

Dynamic partitioning

Memory allocated based on the needs of a process, leading to fragmentation.

Signup and view all the flashcards

Buddy system

Memory management scheme using powers of two to simplify allocation.

Signup and view all the flashcards

Garbage collection

Automatically reclaims memory that is no longer in use, preventing leaks.

Signup and view all the flashcards

Study Notes

  • Memory systems are various types of data storage used by computers, categorized by speed, size, and purpose

Serial vs. Parallel Communication

  • Serial communication sends data one bit at a time over a single channel
  • Parallel communication sends multiple bits simultaneously over multiple channels
  • Serial data transfer is slower as it transmits one bit at a time
  • Parallel data transfer is faster, as multiple bits are sent simultaneously
  • Serial wiring complexity requires fewer wires, typically one for data and one for ground
  • Parallel wiring complexity requires more wires, with one for each bit plus ground and control
  • Serial communication is suitable for longer distances, potentially up to several kilometers
  • Parallel communication is suitable for short distances due to signal degradation
  • Serial communication is more cost-effective, needing fewer, simpler designs
  • Parallel communication is more expensive due to multiple wires and connectors
  • Serial communication is less prone to signal interference and crosstalk over long distances
  • Parallel communication is prone to signal degradation, particularly over long distances
  • Examples of serial communication include RS-232, USB, Bluetooth, Ethernet, SPI, and I2C
  • Examples of parallel communication include older computer printer ports and internal connections like RAM

Applications of Serial and Parallel Ports

  • RS-232 is used in serial ports on computers, modems, and communication devices
  • USB connects peripherals like keyboards, mice, external storage, cameras and printers
  • USB ports are used on computers for charging and data transfer between devices
  • Bluetooth is for wireless communication between devices
  • Ethernet is used for networking and internet communication
  • Parallel ports (IEEE 1284) are used in older printers and computer peripherals
  • Integrated Drive Electronics (IDE) connects hard drives and optical drives in older systems

Primary Memory (Volatile Memory)

  • Primary memory is directly accessible by the CPU, is fast, and loses data when power is off
  • RAM temporarily stores data and instructions actively used or processed by the CPU
  • Dynamic RAM (DRAM) is slower, less expensive, and requires constant refreshing to retain data
  • Static RAM (SRAM) is faster, more expensive, and retains data as long as power is supplied
  • RAM is volatile, typically used for active programs and data and has a larger capacity than cache memory but is slower
  • Cache memory stores frequently accessed data for quick retrieval by the CPU, acting as a high-speed intermediary between the CPU and RAM
  • L1 cache is integrated directly into the CPU chip, is the smallest, and the fastest
  • L2 cache is located on the CPU chip or close to it, larger but slower than L1
  • L3 cache is typically shared between cores, slower than L1 and L2, but much larger
  • Cache memory is extremely fast, but limited in size
  • Cache memory improves the CPU's performance by reducing access time to frequently used data

Secondary Memory (Non-Volatile Memory)

  • Secondary memory is for long-term data storage, retains data without power, is slower but has a larger capacity than primary memory
  • Hard Disk Drives (HDDs) store large amounts of data for long-term access and are mechanical with moving parts
  • HDDs are slower than SSDs but still widely used for large-scale storage that is cost-effective
  • Solid State Drives (SSDs) are a faster alternative to HDDs for storing data
  • SSDs use flash memory with no moving parts and have faster read/write speeds
  • SSDs are more expensive per gigabyte than HDDs, but have higher durability and lower power consumption
  • Optical Discs (CD, DVD, Blu-ray) are used for media distribution and archiving data
  • Data on optical discs is read/written using lasers
  • Optical discs have slower access times compared to HDDs and SSDs
  • Flash Memory (USB Drives, SD Cards) is used for portable data storage and transfer
  • Flash memory is non-volatile and used in USB drives, memory cards, and external drives
  • Flash memory is faster than optical discs but slower than SSDs

Tertiary and Off-Line Storage

  • Tertiary and offline storage solutions are less frequently accessed, offering large storage capacities for archival purposes
  • Magnetic tape is used for backup, archiving, and large-scale data storage
  • Magnetic tape is relatively slow but cost-effective for long-term storage and used for backups and disaster recovery
  • Cloud storage is off-site storage via the internet and provides scalable storage solutions on-demand
  • Cloud storage is accessible from anywhere with an internet connection and is used for file storage, backups, and cloud computing applications.

Virtual Memory

  • Virtual memory uses secondary storage (HDD/SSD) as an extension of RAM
  • The OS divides memory into fixed-size pages and swaps them between RAM and storage
  • Data from RAM not in use swaps to the hard drive to free space
  • Virtual memory enhances multitasking and allows more programs to run simultaneously as well as supporting more running processes
  • Accessing data from a disk is slower than from RAM

Memory Hierarchy

  • Registers are inside the CPU and used for immediate processing
  • Cache Memory (L1, L2, L3) holds fast, small memory close to the CPU for frequently accessed data
  • Main Memory (RAM) is larger and slower than cache, but faster than secondary memory
  • Secondary Storage includes HDDs, SSDs, and optical drives used for long-term data storage
  • Tertiary and Off-line Storage includes magnetic tapes and cloud storage used for backup and archival purposes
  • A memory hierarchy organizes different types of memory in a system, ordered by speed, cost, and size

Types of Memory

  • Primary memory is directly accessible by the CPU, volatile, and used for running programs and storing active data and is very fast, but limited in size
  • RAM and cache memory are examples of primary memory
  • Secondary memory is non-volatile, used for long-term data storage, is slower than primary memory, but larger in capacity
  • HDDs, SSDs, optical discs (CD/DVD), and USB flash drives are examples of secondary memory
  • RAM is volatile, loses data when the power is off, stores actively used data and can be read from and written to
  • DRAM is slower and requires constant refreshing and SRAM is faster, does not require refreshing, but is more expensive
  • ROM is non-volatile, meaning data is retained when the power is off
  • Data is typically written to ROM during manufacturing and cannot be modified easily
  • ROM is used for storing firmware
  • PROM can be written to once
  • EPROM can be erased and reprogrammed with special equipment.
  • EEPROM can be electrically erased and reprogrammed

Cache Memory and its Importance

  • Cache memory is small and high-speed located between the CPU and RAM
  • Cache memory holds frequently used data or instructions that are likely to be reused
  • L1 cache is integrated into the CPU and is very fast but small; L2 cache may be on-chip or close to the CPU, is larger than L1 but slower
  • L3 cache is shared among multiple CPU cores and is larger and slower than L1 and L2
  • Cache memory speeds up the CPU by reducing the time it takes to access data from the main memory
  • Frequently accessed data are retrieved faster, improving overall performance
  • Without cache memory, the CPU would frequently have to access slower main memory

Memory Hierarchy

  • The memory hierarchy is a tiered structure with the hierarchy that balances cost, speed, and capacity
  • Registers are fastest form of memory. They are located inside the CPU, very small in size and used to store data that is immediately needed by the CPU for operations
  • Cache is high-speed memory located between the CPU and RAM
  • It’s small compared to RAM but larger than registers
  • It holds frequently used instructions and data reducing access time to RAM
  • Cache (L1 and L2) is very fast but slower than registers
  • Main memory (RAM) stores programs and data when they are in use by the system, is larger than cache but smaller than secondary storage
  • Main Memory stores data and program that are actively in use and is faster than secondary storage
  • Level 4 is non-volatile Storage that retains data even when the computer is turned off

Memory Management Overview

  • Paging is a memory management scheme where each program is divided into logical segments of varying sizes. It divides physical memory into fixed-size blocks called "pages" and divides logical memory into blocks of the same size, called "page frames"
  • Paging avoids fragmentation by allocating memory in fixed-sized blocks
  • Programs can be loaded into any available memory frame
  • Paging virtual memory enables programs to use more memory than is physically available
  • The operating system maintains a page table, which maps virtual pages to physical frames
  • Memory management addresses are protected by using the segment or page tables to map virtual addresses to physical addresses
  • The OS can restrict access to certain areas of memory by setting permissions (read, write, execute)

Segmentation

  • Segmentation matches the logical structure when dividing its structure, the OS divides memory in logical manner
  • Segments can grow independently of each other, especially the heap and stack
  • External fragmentation occurs because segments may not fit perfectly in memory
  • Managing different-sized segments can lead to inefficient use of memory
  • Each segment has a base (starting address) and a limit (size)
  • The isolation and protection of memory allows programs to exceed the physical memory size and it improves security

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

Use Quizgecko on...
Browser
Browser