• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 13 pages
Exam (elaborations)

Information technology 342 Exam 2 Notes

Document preview thumbnail
Preview 2 out of 13 pages

Lecture 5 (Input Output Devices Manager) Reason for Input/ Output (I/O) - Normally the primary purpose of a computer o Most applications don’t do much processing. ▪ Presentation program (like PowerPoint) ▪ Word Processing program (like Word) Peripheral View - For long time considered outside the operating system. - But many problems of a computer were due to them o Conflicting interrupts, Drivers, Memory allocation, Updated drivers Input and Output - Physical device, Connections, Support equipment, Software Input - Changes the nature of programs o Keyboard, Storage Devices Output - Allows end users to see the data o Monitors/ displays, Storage devices Issues - Large number of devices o Each type of devices have many options; Manufacturer, Cabling, Configurations o Most complex part of the computer o OS must manage the differences. - Peripherals are physical o Interact with the real world o Must fit with the computer system o USB: type A, B, C, 3, mini, Micro. - Data Rates vary over 8 orders of magnitude - Task Control: Blocking/ non-blocking - Data transfers: Block/ character / clock - Transfer Schedule: Synchronous/ Asynchronous - Data transfer: Serial (farther Parallel) - Control Complexity o Handled by device hardware o Data Access: Sequential/ Random/ Direct o Shareability: Dedicated / Shareable / Virtual o I/0 direction: Write/ read/ both o Function o Error Conditions: unique to each device I/O - Objectives o Efficiency ▪ I/O operations are usually the bottleneck. ▪ I/O devices are slow compared to CPU. o Improved abstractions ▪ Handle all devices uniformly. - OS Role o Manage and Control ▪ I/O Operations, I/O Devices o Mange ▪ Keep track of what’s available ▪ Keep track of who owns and can use o Control ▪ Have System calls to do things - History o Directly controlled by applications, Controllers provided, o Control of memory bus o Specialized instruction sets o Dedicated microprocessors - Categories o Human Readable ▪ Printers, terminals, video displays, mouse o Machine Readable ▪ Communication with equipment and remote devices ▪ Disk drives, USB keys, sensors Interconnections - Set of wires - Strict protocol - Direct connection to CPU is referred to as back side bus - Examples: PCI bus, IDE Disk Controller, SCSI, Expansion Daisy Chain - Peripheral connected to each other; Disk Drivers, USB. Support Structures - Registers o CPU; I/O Address, I/O Buffer o Device Controller; Command, Buffer - Memory o Unique identifier o Current Owner o Location of Device Driver o Location of Control Register o Location status Register o Error Vector locations o Channel or port o Status Communication with I/O - Direct through bus - Memory Mapped System Calls - I/O is hardware o It is all protected o Kernel involvement - Application program uses API o User OS uses System call to get to kernel o API may only be a wrapper Communication - Two parts o Control ▪ Command from CPU to device ▪ Status from device to CPU o Transfer of data Methods of I/O Control - Memory Mapped o CPU and device must periodically check memory - Command o CPU sends command directly to device; could be the DMA o Device sends interrupt to get attention; CPU retrieves status o CPU checks device periodically Methods of I/O data transfer - Polling o Aka Busy Waiting or programmed I/O o CPU continually (periodically) checks device - Interrupts o Peripheral sends a signal when it needs to be serviced - Direct Memory Access (DMA) o Controller that can directly access Memory Interrupt Issues - May have priorities - Must identify proper subroutine(handler); through interrupt vector - Can be blocked for critical sections of code Handling Interrupt Issues - Multiple IRQ (Interrupt Request Lines) - Post address to access proper Interrupt Vector - For large numbers of devices use chaining - Include priority levels Buffering - Accounts for differences of speed between two devices - Breaks transfer into smaller pieces - Support copy semantics. - Types: o Single Buffer (one buffer), Double Buffer (two buffer), Circular Buffer (More than two buffers) Lecture 6 (Disk Management) Disk Management Includes Scheduling, Buffering, Swap Space Management Disk - Large one-dimensional Array of logical blocks; yes logical - Typically, 512 bytes per sector; but can be other sizes - Sectors are mapped into blocks - Tracks are skewed to account for time it takes to move head between tracks Mapping from logical to physical - Conversion is difficult o Defective sectors o Sectors per track not always constant ▪ Constant Linear Velocity; like CD-ROM ▪ Constant Angular Velocity; like Magnetic Disk Access Time - Total time to fetch some data o Seek time: time to move head and allow it to stabilize. o Rotational latency: time to rotate disk to position under head o Access time is sum of these and ignoring electrical delays is the time to fetch the first byte. -(wait for device)-(wait for channel) o Transfer time: time for number needed bytes to pass under head - Total time o Time = seek time + rotational delay (1/2r) + Transfer time ▪ Rotational Delay • R = disk speed (revolutions per minute), ½ is on average half of disk. ▪ transfer time Bytes • rotation speed * bytes on track, ((rev/min) * bytes on revolution = bytes/min) – convert to seconds; by 60. - Once the data is retrieved it is sent to computer memory via some interface o SATA (Serial ATA) operates at 375 MB/s. Workload - Sequential: taking all information from disk on a track then moving to next track. - Random: Moving to exact locations to get small amounts of information. Disk Scheduling - The OS manages how and when files are transferred from the disks. o First In First Out (FIFO) ▪ The disk arm must move to each location in turn o Shortest Seek Time First (SSTF) ▪ Order the requests that minimize the arm movement

Content preview

Information technology 342 Exam 2 Notes


Operating Systems (George Mason University)




Studocu is not sponsored or endorsed by any college or university




Downloaded by Morris Muthii

, Lecture 5 (Input Output Devices Manager)
Reason for Input/ Output (I/O)
- Normally the primary purpose of a computer
o Most applications don’t do much processing.
▪ Presentation program (like PowerPoint)
▪ Word Processing program (like Word)
Peripheral View
- For long time considered outside the operating system.
- But many problems of a computer were due to them
o Conflicting interrupts, Drivers, Memory allocation, Updated drivers
Input and Output
- Physical device, Connections, Support equipment, Software
Input
- Changes the nature of programs
o Keyboard, Storage Devices
Output
- Allows end users to see the data
o Monitors/ displays, Storage devices
Issues
- Large number of devices
o Each type of devices have many options; Manufacturer, Cabling, Configurations
o Most complex part of the computer
o OS must manage the differences.
- Peripherals are physical
o Interact with the real world
o Must fit with the computer system
o USB: type A, B, C, 3, mini, Micro.
- Data Rates vary over 8 orders of magnitude
- Task Control: Blocking/ non-blocking
- Data transfers: Block/ character / clock
- Transfer Schedule: Synchronous/ Asynchronous
- Data transfer: Serial (farther Parallel)
- Control Complexity
o Handled by device hardware
o Data Access: Sequential/ Random/ Direct
o Shareability: Dedicated / Shareable / Virtual
o I/0 direction: Write/ read/ both
o Function
o Error Conditions: unique to each device
I/O
- Objectives
o Efficiency
▪ I/O operations are usually the bottleneck.




Downloaded by Morris Muthii
()

Document information

Uploaded on
March 16, 2025
Number of pages
13
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$15.89

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Aplusstuvia
4.5
(84)
Sold
374
Followers
170
Items
565
Last sold
4 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions