• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 13 páginas
Examen

Information technology 342 Exam 2 Notes

Document preview thumbnail
Vista previa 2 fuera de 13 páginas

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

Vista previa del contenido

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
()

Información del documento

Subido en
16 de marzo de 2025
Número de páginas
13
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$15.89

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Aplusstuvia
4.5
(84)
Vendido
374
Seguidores
170
Artículos
565
Última venta
4 horas hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes