CS501 - Handouts - Lec_22-45.pdf
Verified academic study resource for CS501 (Advance Computer Architecture) under the Computer Science at Virtual University of Pakistan. This PDF document (Official Lecture Handouts & Highlighted Notes) covers Complete Course Handouts (Lectures 1 to 45) spanning approximately 450 pages across 8 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.
- Course
- CS501 – Advance Computer Architecture
- Faculty
- Computer Science
- Format
- Type
- Handout
- Coverage
- Complete Course Handouts (Lectures 1 to 45)
- Tags
- HANDOUT
Virtual University examiners construct 100% of objective MCQs and subjective marking schemes directly from the official CS501 handouts.
What this file covers — CS501 syllabus roadmap
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)
Frequently asked questions
Where can I download CS501 - Handouts - Lec_22-45.pdf for free?
You can preview and download "CS501 - Handouts - Lec_22-45.pdf" (CS501 PDF, ~450 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs501-handouts-lec-22-45-pdf) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS501 file?
This document covers Complete Course Handouts (Lectures 1 to 45) across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.
What is the passing criteria for CS501 under the VU 20% Two-Half Rule?
Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.
Are CS501 solved past papers and handouts verified for 2026 exams?
Yes. All CS501 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.
Inside this file
Advanced Computer ArchitectureCS501
________________________________________________________
Lecture No. 23
I/O Subsystems
Reading Material
Vincent P. Heuring & Harry F. Jordan Chapter 8
Computer Systems Design and Architecture 8.1, 8.2
Summary
�� Introduction to I/O Subsystems
�� Major Components of an I/O Subsystems
�� Computer Interface
�� Memory Mapped I/O versus Isolated I/O
�� Considerations during I/O Subsystem Design
�� Serial and Parallel Transfers
�� I/O Buses
Introduction to I/O Subsystems
This module is about the computers input and output. As we have seen in the case of
memory subsystems, that when we use the terms read and write, then these terms
are from the CPUs point of view. Similarly, when we use the terms input and output
then these are also from the CPUs point of view. It means that when we are talking about
an input cycle, then the CPU is receiving data from a peripheral device and the peripheral
device is providing data. Similarly, when we talk about an output cycle then the CPU is
sending data to a peripheral device and the peripheral device is receiving data. I/O
Subsystems are similar to memory subsystems in many aspects. For example, both
exchange bits or bytes. This transfer is usually controlled by the CPU. The CPU sends
address information to the memory and the I/O subsystems. Then these subsystems
decode the address and decide which device should be involved in the transfer. Finally
the appropriate data is exchanged between the CPU and the memory or the I/O device.
Memory and I/O subsystems differ in the following ways:
1. Wider range of data transfer speed:
I/O devices can be very slow such as a keyboard in which case the interval between
two successive bytes (or keystrokes) can be in seconds. On the other extreme, I/O
devices can be very fast such as a disk drive sending data to the CPU or a stream of
packets arriving over a network, in which case the interval between two successive
bytes can be in microseconds or even nanoseconds. While I/O devices can have such
a wide range of data transfer speed compared to the CPUs speed, the case of memory
devices is not so. Even if a memory device is slow compared to the CPU, the CPUs
speed can be made compatible by inserting wait states in the bus cycle.
Last Modified: 17Feb07 Page 232
Advanced Computer ArchitectureCS501
________________________________________________________
2. Asynchronous activity:
Memory subsystems are almost always synchronous. This means that most memory
transfers are governed by the CPUs clock. Generally this is not the case with I/O
subsystems. Additional signals, called handshaking signals, are needed to take care of
asynchronous I/O transfers.
3. Larger degradation in data quality:
Data transferred by I/O subsystems can carry more noise. As an example, telephone
line noise can become part of the data transferred by a modem. Errors caused by
media defects on hard drives can corrupt the data. This implies that effective error
detection and correction techniques must be used with I/O subsystems.
4. Mechanical nature of many I/O devices:
Many I/O devices or a large portion of I/O devices use mechanical parts which
inherently have a high failure rate. In case an I/O device fails, interruptions in data
transfer will occur, reducing the throughput. As an example, if a printer runs out of
paper, then additional bytes cannot be sent to it. The CPUs data should be buffered
(or kept in a temporary place) till the paper is supplied to the printer, otherwise the
CPU will not be able to do anything else during this time.
To deal with these differences, special software programs called device drivers are made
a part of the operating system. In most cases, device drivers are written in assembly
language.
You would recall that in case of memory subsystems, each location uses a unique address
from the CPUs address space. This is generally not the case with I/O devices. In most
cases, a group or block of contiguous addresses is assigned to an I/O device, and data is
exchanged bytebybyte. Internal buffers (memory) within the device store this data if
needed.
In the past, people have paid a lot of attention to improve the CPUs performance, as a
result of which the performance improvement of I/O subsystems was ignored. (I/O
subsystems were even called the orphans of computer architecture by some people).
Perhaps, many benchmark programs and metrics that were developed to evaluate
computer systems focused on the CPU or the memory performance only. Performance of
I/O subsystems is as important as that of the CPU or the memory, especially in todays
world. For example, the transaction processing systems used in airline reservation
systems or the automated teller machines in banks have a very heavy I/O traffic,
requiring improved I/O performance. To illustrate this point, look at the following
example.
Suppose that a certain program takes 200 seconds of elapsed time to execute. Out of
these 200 seconds, 180 seconds is the CPU time and the rest is I/O time. If the CPU
performance improves by 40% every year for the next seven years because of
developments in technology, but the I/O performance stays the same, let us look at the
following table, which shows the situation at the end of each year. Remember that
Elapsed time = CPU time + I/O time.
This gives us the I/O time = 200 180 = 20 seconds at the beginning, which is 10 % of
the elapsed time.
Last Modified: 17Feb07 Page 233
Advanced Computer ArchitectureCS501
________________________________________________________
Year # CPU I/O Elapsed I/O Time x100 %
Time Time Time Elapsed TimeMore CS501 files
- CS501 - Handouts.pdf (PDF · Handout)
- CS501 - Handouts.pdf (PDF · Handout)
- CS501 Handouts by MS S25.pdf (PDF · Handout)
- CS501 Highlight Handout By Vu Topper RM.pdf (PDF · Handout)
- CS501 Highlight Handout by VUAnswer.com.pdf (PDF · Handout)
- CS501 Highlight Handout by VU_Toper.pdf (PDF · Handout)
- CS501 Highlighted Handout .pdf (PDF · Handout)
- CS501 Highlighted Handout By Vu Topper RM.pdf (PDF · Handout)