SlideShare a Scribd company logo
Sistem Operasi
       IKH311




Masukan Luaran (Input/Output)
Prinsip I/O




              2
Device Controllers


    I/O devices have components:
    ●
        mechanical component
    ●
        electronic component

    The electronic component is the device
    controller
    ●
        may be able to handle multiple devices

    Controller's tasks
    ●
        convert serial bit stream to block of bytes
    ●
        perform error correction as necessary
    ●
        make available to main memory
Principles of I/O Software
                  Goals of I/O Software (1)

   Device independence
    ●   programs can access
        any I/O device
    ●   without specifying
        device in advance
        –   (floppy, hard drive, or
            CD-ROM)
   Uniform naming
    ●   name of a file or
        device a string or an
        integer
    ●   not depending on
Memory-Mapped I/O
Memory-Mapped I/O
Direct Memory Access (DMA)
Interrupt
Not Recently Used Page Replacement
                  Algorithm

   Each page has
     Reference bit,
     Modified bit
          bits are set when
             page is
             referenced,
             modified
   Pages are classified
          not referenced,
            not modified
          not referenced,
            modified
Device-Independent I/O Software
             (1)

    Uniform interfacing for device drivers
    Buffering
    Error reporting
    Allocating and releasing dedicate devices
    Providing a deice-independent block size


Functions of the device-independent I/O software
                                                10
FIFO Page Replacement
                 Algorithm

    Maintain a linked list of all pages
       
           in order they came into memory

    Page at beginning of list replaced

    Disadvantage
       
           page in memory the longest may be often used
Device-Independent I/O Software
               (3)




(a) Unbuffered input
(b) Buffering in user space
(c) Buffering in the kernel followed by copying to user space
(d) Double buffering in the kernel                          12
Device-Independent I/O Software
             (4)




   Networking may involve many copies
                                        13
Disks
            Disk Hardware (1)




Disk parameters for the original IBM PC floppy disk   14
     and a Western Digital WD 18300 hard disk
Disk Hardware (2)





    Physical geometry of a disk with two zones

    A possible virtual geometry for this disk    15
Disk Hardware (3)





    Raid levels 0 through 2

    Backup and parity drives are shaded   16
Disk Hardware
                (4)





    Raid levels 3 through 5

    Backup and parity drives are shaded   17
Disk Hardware (5)




Recording structure of a CD or CD-ROM   18
Disk Hardware (6)




Logical data layout on a CD-ROM
                                  19
Disk Hardware (7)





    Cross section of a CD-R disk and laser
    ●
        not to scale

    Silver CD-ROM has similar structure
    ●
        without dye layer
    ●
        with pitted aluminum layer instead of gold   20
Disk Hardware (8)




A double sided, dual layer DVD disk
                                      21
Disk Formatting (1)




     A disk sector

                      22
Disk Formatting (2)




An illustration of cylinder skew   23
Disk Formatting (3)




 
     No interleaving
 
     Single interleaving
 
     Double interleaving
                           24
Disk Arm Scheduling Algorithms (1)
 • Time required to read or write a disk
   block determined by 3 factors
   1.   Seek time
   2.   Rotational delay
   3.   Actual transfer time
 • Seek time dominates
 • Error checking is done by controllers


                                           25
Disk Arm Scheduling Algorithms (2)
              Initial   Pending
             position   requests




Shortest Seek First (SSF) disk scheduling algorithm

                                                 26
Disk Arm Scheduling Algorithms (3)




The elevator algorithm for scheduling disk requests
                                                  27
Error Handling





    A disk track with a bad sector

    Substituting a spare for the bad sector

    Shifting all the sectors to bypass the bad one
                                                     28
Stable Storage




Analysis of the influence of crashes on stable writes

                                                   29
Pustaka


    Avi Silberschatz, "Operating System Concepts"

    http://codex.cs.yale.edu/avi/os-
      book/OS8/os8j/index.html

    Andrew Tanenbaum, "Modern Operating
     Systems"

    http://www.cs.vu.nl/~ast/books/mos2/

    Harvey Deitel, "Operating Systems"

    http://cs.nyu.edu/~yap/classes/os/resources/origin_of
      _PV.html

    tjerdastangkas.blogspot.com/search/label/ikh311

More Related Content

ODP
Comparison between grub-legacy ,lilo and grub -2
PPTX
Hardware it presentation
TXT
Emu log
PPT
Computer Hardware Basics
PPTX
องค์ประกอบของระบบสารสนเทศ
ODP
Description of GRUB 2
PPTX
Css nc ii
Comparison between grub-legacy ,lilo and grub -2
Hardware it presentation
Emu log
Computer Hardware Basics
องค์ประกอบของระบบสารสนเทศ
Description of GRUB 2
Css nc ii

What's hot (20)

PPTX
computer
PPTX
BSAD 104 Understanding Computers,OS,File Management
ODP
Making your own bootloader
PDF
Assembling a computer
PPTX
Computer Motherboard
PPTX
Microprocessor based software developnent
PPSX
07. Mainboard (System Board, Motherboard)
PPT
Computer Hardware
PPT
Module 4. motherboard.
PPTX
Mother board
DOCX
HARD DISK PARTITIONING,FORMATING
PPTX
Computer hardware
PPTX
Computer Motherboard
PDF
Understanding The Boot Process
PPTX
Performing Disk Management Tasks
PPT
Unix fundamentals
PPT
Assembling the computer
PPT
Booy Up
PPTX
Pc assembly
computer
BSAD 104 Understanding Computers,OS,File Management
Making your own bootloader
Assembling a computer
Computer Motherboard
Microprocessor based software developnent
07. Mainboard (System Board, Motherboard)
Computer Hardware
Module 4. motherboard.
Mother board
HARD DISK PARTITIONING,FORMATING
Computer hardware
Computer Motherboard
Understanding The Boot Process
Performing Disk Management Tasks
Unix fundamentals
Assembling the computer
Booy Up
Pc assembly
Ad

Viewers also liked (20)

PPS
PDF
Designing the Mobile Experience
PPSX
Animation in Diamond Resorts
PPT
Social Realism
PPTX
Excellent Roth IRA Alternative
PDF
Web Application Security For Small and Medium Businesses
PDF
Tle4904 343973
PDF
MRLC Feb Reading
PPT
But Sales Was Not In My Job Description
KEY
PHP & XML: SimpleXML, DOMDocument
PPT
How to Play Well with Others (A Program on Dealing with Difficult People)
PPTX
You, Your Family & Your Estate
PPTX
Errenazimenduko pintura. Veneziako eskola ppt
PPTX
Office 365 + Windows Azure (del 2)
PDF
Global Conferencing Trends
PDF
Innovation mentoring grant proposal 100113 rev 1
PDF
Quesnel.Adolescent Literacy.Feb 2016
PDF
Qualicum engagement.novpptx
PDF
soal-pemrograman-b
PPT
Goodxi
Designing the Mobile Experience
Animation in Diamond Resorts
Social Realism
Excellent Roth IRA Alternative
Web Application Security For Small and Medium Businesses
Tle4904 343973
MRLC Feb Reading
But Sales Was Not In My Job Description
PHP & XML: SimpleXML, DOMDocument
How to Play Well with Others (A Program on Dealing with Difficult People)
You, Your Family & Your Estate
Errenazimenduko pintura. Veneziako eskola ppt
Office 365 + Windows Azure (del 2)
Global Conferencing Trends
Innovation mentoring grant proposal 100113 rev 1
Quesnel.Adolescent Literacy.Feb 2016
Qualicum engagement.novpptx
soal-pemrograman-b
Goodxi
Ad

Similar to ikh311-07 (20)

PPT
77751777.ppt Безопасность информационная
PPT
Chapter 05
PPT
Chapter-05.ppt
PPT
5120224.ppt
PPT
Lesson 2 Ppt V6
PPTX
Brainware university Core Hardware and Troubleshooting
PPT
Hard Disk Componets
PPT
PDF
Ganesh naik linux_kernel_internals
PDF
Ganesh naik linux_kernel_internals
PPTX
I/O System and Case study
PPTX
Understanding the Computer System_Classpoint.pptx
PPT
It is a data storage device in a computer.
PPTX
Chapter introduction to comuting 04(1).pptx
PDF
Android Mind Reading: Android Live Memory Analysis with LiME and Volatility
ODP
Case study of BtrFS: A fault tolerant File system
PDF
Common computer myth’s
PPT
Presentation
PPTX
Computerhardware 130909042641-
PPT
Lecture Notes for Device management in Operating Systems
77751777.ppt Безопасность информационная
Chapter 05
Chapter-05.ppt
5120224.ppt
Lesson 2 Ppt V6
Brainware university Core Hardware and Troubleshooting
Hard Disk Componets
Ganesh naik linux_kernel_internals
Ganesh naik linux_kernel_internals
I/O System and Case study
Understanding the Computer System_Classpoint.pptx
It is a data storage device in a computer.
Chapter introduction to comuting 04(1).pptx
Android Mind Reading: Android Live Memory Analysis with LiME and Volatility
Case study of BtrFS: A fault tolerant File system
Common computer myth’s
Presentation
Computerhardware 130909042641-
Lecture Notes for Device management in Operating Systems

More from Anung Ariwibowo (20)

PDF
isd314-06-association-mining
PDF
ikp213-unifikasi
PDF
ikp213-06-horn-clause
PDF
ikp213-01-pendahuluan
PDF
ikd312-05-sqlite
PDF
ikd312-05-kalkulus-relasional
PDF
ikd312-04-aljabar-relasional
PDF
ikd312-03-design
PDF
ikd312-02-three-schema
PDF
ikp213-02-pendahuluan
PDF
ikh311-08
PDF
ikh311-06
PDF
ikh311-05
PDF
ikp321-svn
PDF
ikh311-04
PDF
ikp321-05
PDF
imsakiyah-jakarta-1433-09
PDF
ikh311-03
PDF
ikp321-04
PDF
ikp321-03
isd314-06-association-mining
ikp213-unifikasi
ikp213-06-horn-clause
ikp213-01-pendahuluan
ikd312-05-sqlite
ikd312-05-kalkulus-relasional
ikd312-04-aljabar-relasional
ikd312-03-design
ikd312-02-three-schema
ikp213-02-pendahuluan
ikh311-08
ikh311-06
ikh311-05
ikp321-svn
ikh311-04
ikp321-05
imsakiyah-jakarta-1433-09
ikh311-03
ikp321-04
ikp321-03

Recently uploaded (20)

PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Lesson notes of climatology university.
PDF
Insiders guide to clinical Medicine.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Cell Types and Its function , kingdom of life
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Institutional Correction lecture only . . .
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
RMMM.pdf make it easy to upload and study
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Complications of Minimal Access Surgery at WLH
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
O7-L3 Supply Chain Operations - ICLT Program
Lesson notes of climatology university.
Insiders guide to clinical Medicine.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Microbial disease of the cardiovascular and lymphatic systems
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Cell Types and Its function , kingdom of life
O5-L3 Freight Transport Ops (International) V1.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Institutional Correction lecture only . . .
Sports Quiz easy sports quiz sports quiz
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
RMMM.pdf make it easy to upload and study
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Complications of Minimal Access Surgery at WLH
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
TR - Agricultural Crops Production NC III.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student

ikh311-07

  • 1. Sistem Operasi IKH311 Masukan Luaran (Input/Output)
  • 3. Device Controllers  I/O devices have components: ● mechanical component ● electronic component  The electronic component is the device controller ● may be able to handle multiple devices  Controller's tasks ● convert serial bit stream to block of bytes ● perform error correction as necessary ● make available to main memory
  • 4. Principles of I/O Software Goals of I/O Software (1)  Device independence ● programs can access any I/O device ● without specifying device in advance – (floppy, hard drive, or CD-ROM)  Uniform naming ● name of a file or device a string or an integer ● not depending on
  • 9. Not Recently Used Page Replacement Algorithm  Each page has Reference bit, Modified bit  bits are set when page is referenced, modified  Pages are classified  not referenced, not modified  not referenced, modified
  • 10. Device-Independent I/O Software (1) Uniform interfacing for device drivers Buffering Error reporting Allocating and releasing dedicate devices Providing a deice-independent block size Functions of the device-independent I/O software 10
  • 11. FIFO Page Replacement Algorithm  Maintain a linked list of all pages  in order they came into memory  Page at beginning of list replaced  Disadvantage  page in memory the longest may be often used
  • 12. Device-Independent I/O Software (3) (a) Unbuffered input (b) Buffering in user space (c) Buffering in the kernel followed by copying to user space (d) Double buffering in the kernel 12
  • 13. Device-Independent I/O Software (4) Networking may involve many copies 13
  • 14. Disks Disk Hardware (1) Disk parameters for the original IBM PC floppy disk 14 and a Western Digital WD 18300 hard disk
  • 15. Disk Hardware (2)  Physical geometry of a disk with two zones  A possible virtual geometry for this disk 15
  • 16. Disk Hardware (3)  Raid levels 0 through 2  Backup and parity drives are shaded 16
  • 17. Disk Hardware (4)  Raid levels 3 through 5  Backup and parity drives are shaded 17
  • 18. Disk Hardware (5) Recording structure of a CD or CD-ROM 18
  • 19. Disk Hardware (6) Logical data layout on a CD-ROM 19
  • 20. Disk Hardware (7)  Cross section of a CD-R disk and laser ● not to scale  Silver CD-ROM has similar structure ● without dye layer ● with pitted aluminum layer instead of gold 20
  • 21. Disk Hardware (8) A double sided, dual layer DVD disk 21
  • 22. Disk Formatting (1) A disk sector 22
  • 23. Disk Formatting (2) An illustration of cylinder skew 23
  • 24. Disk Formatting (3)  No interleaving  Single interleaving  Double interleaving 24
  • 25. Disk Arm Scheduling Algorithms (1) • Time required to read or write a disk block determined by 3 factors 1. Seek time 2. Rotational delay 3. Actual transfer time • Seek time dominates • Error checking is done by controllers 25
  • 26. Disk Arm Scheduling Algorithms (2) Initial Pending position requests Shortest Seek First (SSF) disk scheduling algorithm 26
  • 27. Disk Arm Scheduling Algorithms (3) The elevator algorithm for scheduling disk requests 27
  • 28. Error Handling  A disk track with a bad sector  Substituting a spare for the bad sector  Shifting all the sectors to bypass the bad one 28
  • 29. Stable Storage Analysis of the influence of crashes on stable writes 29
  • 30. Pustaka  Avi Silberschatz, "Operating System Concepts"  http://codex.cs.yale.edu/avi/os- book/OS8/os8j/index.html  Andrew Tanenbaum, "Modern Operating Systems"  http://www.cs.vu.nl/~ast/books/mos2/  Harvey Deitel, "Operating Systems"  http://cs.nyu.edu/~yap/classes/os/resources/origin_of _PV.html  tjerdastangkas.blogspot.com/search/label/ikh311