operating system-input/outp (by shweta patel)
TRANSCRIPT
![Page 1: Operating system-INPUT/OUTP (by shweta patel)](https://reader034.vdocuments.site/reader034/viewer/2022052507/55895e3cd8b42a5e3f8b46f4/html5/thumbnails/1.jpg)
I/O Systemsin
OPERATING SYSTEM
Presented by
Shweta Patel
![Page 2: Operating system-INPUT/OUTP (by shweta patel)](https://reader034.vdocuments.site/reader034/viewer/2022052507/55895e3cd8b42a5e3f8b46f4/html5/thumbnails/2.jpg)
OBJECTIVES
•Understanding the various I/O devices and their characteristics.
•Understanding the role of device drivers.
•Understanding the transformation of I/O request to h/w operation.
![Page 3: Operating system-INPUT/OUTP (by shweta patel)](https://reader034.vdocuments.site/reader034/viewer/2022052507/55895e3cd8b42a5e3f8b46f4/html5/thumbnails/3.jpg)
VARIOUS I/O DEVICES
PURPOSE ACCESS MODE EXAMPLES
INPUT
Sequential Keyboard, Mouse
Random Disks
Sequential Printers
Random Disks
STORAGE
Sequential Tapes, Disks
Random Disks
![Page 4: Operating system-INPUT/OUTP (by shweta patel)](https://reader034.vdocuments.site/reader034/viewer/2022052507/55895e3cd8b42a5e3f8b46f4/html5/thumbnails/4.jpg)
CHARACTERISTICS OF I/O DEVICES
![Page 5: Operating system-INPUT/OUTP (by shweta patel)](https://reader034.vdocuments.site/reader034/viewer/2022052507/55895e3cd8b42a5e3f8b46f4/html5/thumbnails/5.jpg)
DEVICE DRIVERS•Program in the operating system ,
responsible for managing the h/w device attached to the system.
•Insulates the applications from having to know the details about the physical connections , protocols and signals required to communicate with a device.
•The application doesn’t have to know the physical address of the port.
![Page 6: Operating system-INPUT/OUTP (by shweta patel)](https://reader034.vdocuments.site/reader034/viewer/2022052507/55895e3cd8b42a5e3f8b46f4/html5/thumbnails/6.jpg)
•In general, n applications can communicate with m devices using a common device driver.
•Employs a mapping table to communicate with a specific device.
•If the driver is using more than one device , then drivers can use resource table.
•To seek a device driver , system calls are used .
![Page 7: Operating system-INPUT/OUTP (by shweta patel)](https://reader034.vdocuments.site/reader034/viewer/2022052507/55895e3cd8b42a5e3f8b46f4/html5/thumbnails/7.jpg)
Device driver
Mapping table
Resource table
Channel
Device 1
Device 2
Device 3
Device Driver Implementation
![Page 8: Operating system-INPUT/OUTP (by shweta patel)](https://reader034.vdocuments.site/reader034/viewer/2022052507/55895e3cd8b42a5e3f8b46f4/html5/thumbnails/8.jpg)
TRANSFORMING I/O to H/W OPERATION
Ex. Reading a file from disk
•The application refers the file by the filename.
•A file system maps the file name to identify the space allocation for the file.
•The first part of the file (c:) identifies the specific h/w device.
![Page 9: Operating system-INPUT/OUTP (by shweta patel)](https://reader034.vdocuments.site/reader034/viewer/2022052507/55895e3cd8b42a5e3f8b46f4/html5/thumbnails/9.jpg)
STEPS
▫Determine device holding file. ▫Translate name to device representation.
▫Physically read data from disk into buffer.
▫Make data available to requesting application .
▫Return control to process.
![Page 10: Operating system-INPUT/OUTP (by shweta patel)](https://reader034.vdocuments.site/reader034/viewer/2022052507/55895e3cd8b42a5e3f8b46f4/html5/thumbnails/10.jpg)
LIFE CYCLE OF AN I/O REQUEST
![Page 11: Operating system-INPUT/OUTP (by shweta patel)](https://reader034.vdocuments.site/reader034/viewer/2022052507/55895e3cd8b42a5e3f8b46f4/html5/thumbnails/11.jpg)
TWO I/O METHODS
SYNCHRONOUS
ASYNCHRONOUS
![Page 12: Operating system-INPUT/OUTP (by shweta patel)](https://reader034.vdocuments.site/reader034/viewer/2022052507/55895e3cd8b42a5e3f8b46f4/html5/thumbnails/12.jpg)
THANK YOU !!