SlideShare a Scribd company logo
1 of 30
Download to read offline
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

What's hot

BSAD 104 Understanding Computers,OS,File Management
BSAD 104 Understanding Computers,OS,File ManagementBSAD 104 Understanding Computers,OS,File Management
BSAD 104 Understanding Computers,OS,File Management
msdenee
ย 
Microprocessor based software developnent
Microprocessor based software developnentMicroprocessor based software developnent
Microprocessor based software developnent
Sandeep Kamath
ย 
Computer Hardware
Computer HardwareComputer Hardware
Computer Hardware
dheeraj87
ย 
Module 4. motherboard.
Module 4. motherboard.Module 4. motherboard.
Module 4. motherboard.
kj_sherly
ย 
Booy Up
Booy UpBooy Up
Booy Up
boyelectron
ย 

What's hot (20)

computer
computercomputer
computer
ย 
BSAD 104 Understanding Computers,OS,File Management
BSAD 104 Understanding Computers,OS,File ManagementBSAD 104 Understanding Computers,OS,File Management
BSAD 104 Understanding Computers,OS,File Management
ย 
Making your own bootloader
Making your own bootloaderMaking your own bootloader
Making your own bootloader
ย 
Assembling a computer
Assembling a computerAssembling a computer
Assembling a computer
ย 
Computer Motherboard
Computer MotherboardComputer Motherboard
Computer Motherboard
ย 
Microprocessor based software developnent
Microprocessor based software developnentMicroprocessor based software developnent
Microprocessor based software developnent
ย 
07. Mainboard (System Board, Motherboard)
07. Mainboard (System Board, Motherboard)07. Mainboard (System Board, Motherboard)
07. Mainboard (System Board, Motherboard)
ย 
Basic Computer 208 part 2
Basic Computer 208 part 2 Basic Computer 208 part 2
Basic Computer 208 part 2
ย 
Computer Hardware
Computer HardwareComputer Hardware
Computer Hardware
ย 
Module 4. motherboard.
Module 4. motherboard.Module 4. motherboard.
Module 4. motherboard.
ย 
Mother board
Mother boardMother board
Mother board
ย 
HARD DISK PARTITIONING,FORMATING
HARD DISK PARTITIONING,FORMATINGHARD DISK PARTITIONING,FORMATING
HARD DISK PARTITIONING,FORMATING
ย 
Computer hardware
Computer hardwareComputer hardware
Computer hardware
ย 
Computer Motherboard
Computer MotherboardComputer Motherboard
Computer Motherboard
ย 
Understanding The Boot Process
Understanding The Boot ProcessUnderstanding The Boot Process
Understanding The Boot Process
ย 
Performing Disk Management Tasks
Performing Disk Management TasksPerforming Disk Management Tasks
Performing Disk Management Tasks
ย 
Unix fundamentals
Unix fundamentalsUnix fundamentals
Unix fundamentals
ย 
Assembling the computer
Assembling the computerAssembling the computer
Assembling the computer
ย 
Booy Up
Booy UpBooy Up
Booy Up
ย 
Pc assembly
Pc assemblyPc assembly
Pc assembly
ย 

Viewers also liked

Web Application Security For Small and Medium Businesses
Web Application Security For Small and Medium BusinessesWeb Application Security For Small and Medium Businesses
Web Application Security For Small and Medium Businesses
Sasha Nunke
ย 
But Sales Was Not In My Job Description
But Sales Was Not In My Job DescriptionBut Sales Was Not In My Job Description
But Sales Was Not In My Job Description
Dave Gee
ย 
Errenazimenduko pintura. Veneziako eskola ppt
Errenazimenduko pintura. Veneziako eskola pptErrenazimenduko pintura. Veneziako eskola ppt
Errenazimenduko pintura. Veneziako eskola ppt
asunasenjo
ย 
soal-pemrograman-b
soal-pemrograman-bsoal-pemrograman-b
soal-pemrograman-b
Anung Ariwibowo
ย 
Goodxi
GoodxiGoodxi
Goodxi
sad asad
ย 

Viewers also liked (20)

Camel
CamelCamel
Camel
ย 
Designing the Mobile Experience
Designing the Mobile ExperienceDesigning the Mobile Experience
Designing the Mobile Experience
ย 
Animation in Diamond Resorts
Animation in Diamond ResortsAnimation in Diamond Resorts
Animation in Diamond Resorts
ย 
Social Realism
Social RealismSocial Realism
Social Realism
ย 
Excellent Roth IRA Alternative
Excellent Roth IRA  AlternativeExcellent Roth IRA  Alternative
Excellent Roth IRA Alternative
ย 
Web Application Security For Small and Medium Businesses
Web Application Security For Small and Medium BusinessesWeb Application Security For Small and Medium Businesses
Web Application Security For Small and Medium Businesses
ย 
Tle4904 343973
Tle4904 343973Tle4904 343973
Tle4904 343973
ย 
MRLC Feb Reading
MRLC Feb ReadingMRLC Feb Reading
MRLC Feb Reading
ย 
But Sales Was Not In My Job Description
But Sales Was Not In My Job DescriptionBut Sales Was Not In My Job Description
But Sales Was Not In My Job Description
ย 
PHP & XML: SimpleXML, DOMDocument
PHP & XML: SimpleXML, DOMDocumentPHP & XML: SimpleXML, DOMDocument
PHP & XML: SimpleXML, DOMDocument
ย 
How to Play Well with Others (A Program on Dealing with Difficult People)
How to Play Well with Others (A Program on Dealing with Difficult People)How to Play Well with Others (A Program on Dealing with Difficult People)
How to Play Well with Others (A Program on Dealing with Difficult People)
ย 
You, Your Family & Your Estate
You, Your Family & Your EstateYou, Your Family & Your Estate
You, Your Family & Your Estate
ย 
Errenazimenduko pintura. Veneziako eskola ppt
Errenazimenduko pintura. Veneziako eskola pptErrenazimenduko pintura. Veneziako eskola ppt
Errenazimenduko pintura. Veneziako eskola ppt
ย 
Office 365 + Windows Azure (del 2)
Office 365 + Windows Azure (del 2)Office 365 + Windows Azure (del 2)
Office 365 + Windows Azure (del 2)
ย 
Global Conferencing Trends
Global Conferencing TrendsGlobal Conferencing Trends
Global Conferencing Trends
ย 
Innovation mentoring grant proposal 100113 rev 1
Innovation mentoring grant proposal 100113 rev 1Innovation mentoring grant proposal 100113 rev 1
Innovation mentoring grant proposal 100113 rev 1
ย 
Quesnel.Adolescent Literacy.Feb 2016
Quesnel.Adolescent Literacy.Feb 2016Quesnel.Adolescent Literacy.Feb 2016
Quesnel.Adolescent Literacy.Feb 2016
ย 
Qualicum engagement.novpptx
Qualicum   engagement.novpptxQualicum   engagement.novpptx
Qualicum engagement.novpptx
ย 
soal-pemrograman-b
soal-pemrograman-bsoal-pemrograman-b
soal-pemrograman-b
ย 
Goodxi
GoodxiGoodxi
Goodxi
ย 

Similar to ikh311-07

Chapter 05
Chapter 05Chapter 05
Chapter 05
Google
ย 
Lesson 2 Ppt V6
Lesson 2 Ppt V6Lesson 2 Ppt V6
Lesson 2 Ppt V6
ipwk
ย 
I/O System and Case study
I/O System and Case studyI/O System and Case study
I/O System and Case study
Lavanya G
ย 
Android Mind Reading: Android Live Memory Analysis with LiME and Volatility
Android Mind Reading: Android Live Memory Analysis with LiME and VolatilityAndroid Mind Reading: Android Live Memory Analysis with LiME and Volatility
Android Mind Reading: Android Live Memory Analysis with LiME and Volatility
Joe Sylve
ย 
Lecture Notes for Device management in Operating Systems
Lecture Notes for Device management in Operating SystemsLecture Notes for Device management in Operating Systems
Lecture Notes for Device management in Operating Systems
girmay Gebray
ย 
00 Hardware Of Personal Computer V1 1
00 Hardware Of Personal Computer V1 100 Hardware Of Personal Computer V1 1
00 Hardware Of Personal Computer V1 1
Rajan Das
ย 
lec17-disks.ppt
lec17-disks.pptlec17-disks.ppt
lec17-disks.ppt
RandyGaray
ย 
Ch14 OS
Ch14 OSCh14 OS
Ch14 OS
C.U
ย 

Similar to ikh311-07 (20)

Chapter 05
Chapter 05Chapter 05
Chapter 05
ย 
Chapter-05.ppt
Chapter-05.pptChapter-05.ppt
Chapter-05.ppt
ย 
5120224.ppt
5120224.ppt5120224.ppt
5120224.ppt
ย 
Lesson 2 Ppt V6
Lesson 2 Ppt V6Lesson 2 Ppt V6
Lesson 2 Ppt V6
ย 
Hard Disk Componets
Hard Disk ComponetsHard Disk Componets
Hard Disk Componets
ย 
Lecture 02 hardware
Lecture 02 hardwareLecture 02 hardware
Lecture 02 hardware
ย 
Ganesh naik linux_kernel_internals
Ganesh naik linux_kernel_internalsGanesh naik linux_kernel_internals
Ganesh naik linux_kernel_internals
ย 
Ganesh naik linux_kernel_internals
Ganesh naik linux_kernel_internalsGanesh naik linux_kernel_internals
Ganesh naik linux_kernel_internals
ย 
I/O System and Case study
I/O System and Case studyI/O System and Case study
I/O System and Case study
ย 
Android Mind Reading: Android Live Memory Analysis with LiME and Volatility
Android Mind Reading: Android Live Memory Analysis with LiME and VolatilityAndroid Mind Reading: Android Live Memory Analysis with LiME and Volatility
Android Mind Reading: Android Live Memory Analysis with LiME and Volatility
ย 
Case study of BtrFS: A fault tolerant File system
Case study of BtrFS: A fault tolerant File systemCase study of BtrFS: A fault tolerant File system
Case study of BtrFS: A fault tolerant File system
ย 
Common computer mythโ€™s
Common computer mythโ€™sCommon computer mythโ€™s
Common computer mythโ€™s
ย 
Presentation
PresentationPresentation
Presentation
ย 
Computerhardware 130909042641-
Computerhardware 130909042641-Computerhardware 130909042641-
Computerhardware 130909042641-
ย 
Lecture Notes for Device management in Operating Systems
Lecture Notes for Device management in Operating SystemsLecture Notes for Device management in Operating Systems
Lecture Notes for Device management in Operating Systems
ย 
00 Hardware Of Personal Computer V1 1
00 Hardware Of Personal Computer V1 100 Hardware Of Personal Computer V1 1
00 Hardware Of Personal Computer V1 1
ย 
lec17-disks.ppt
lec17-disks.pptlec17-disks.ppt
lec17-disks.ppt
ย 
Lecturedevicemanagement
LecturedevicemanagementLecturedevicemanagement
Lecturedevicemanagement
ย 
Lec3_Storage_Management.ppt
Lec3_Storage_Management.pptLec3_Storage_Management.ppt
Lec3_Storage_Management.ppt
ย 
Ch14 OS
Ch14 OSCh14 OS
Ch14 OS
ย 

More from Anung Ariwibowo

isd314-06-association-mining
isd314-06-association-miningisd314-06-association-mining
isd314-06-association-mining
Anung Ariwibowo
ย 
ikp213-unifikasi
ikp213-unifikasiikp213-unifikasi
ikp213-unifikasi
Anung Ariwibowo
ย 
ikp213-06-horn-clause
ikp213-06-horn-clauseikp213-06-horn-clause
ikp213-06-horn-clause
Anung Ariwibowo
ย 
ikp213-01-pendahuluan
ikp213-01-pendahuluanikp213-01-pendahuluan
ikp213-01-pendahuluan
Anung Ariwibowo
ย 
ikd312-05-sqlite
ikd312-05-sqliteikd312-05-sqlite
ikd312-05-sqlite
Anung Ariwibowo
ย 
ikd312-05-kalkulus-relasional
ikd312-05-kalkulus-relasionalikd312-05-kalkulus-relasional
ikd312-05-kalkulus-relasional
Anung Ariwibowo
ย 
ikd312-04-aljabar-relasional
ikd312-04-aljabar-relasionalikd312-04-aljabar-relasional
ikd312-04-aljabar-relasional
Anung Ariwibowo
ย 
ikd312-03-design
ikd312-03-designikd312-03-design
ikd312-03-design
Anung Ariwibowo
ย 
ikd312-02-three-schema
ikd312-02-three-schemaikd312-02-three-schema
ikd312-02-three-schema
Anung Ariwibowo
ย 
ikp213-02-pendahuluan
ikp213-02-pendahuluanikp213-02-pendahuluan
ikp213-02-pendahuluan
Anung Ariwibowo
ย 
imsakiyah-jakarta-1433-09
imsakiyah-jakarta-1433-09imsakiyah-jakarta-1433-09
imsakiyah-jakarta-1433-09
Anung Ariwibowo
ย 

More from Anung Ariwibowo (20)

isd314-06-association-mining
isd314-06-association-miningisd314-06-association-mining
isd314-06-association-mining
ย 
ikp213-unifikasi
ikp213-unifikasiikp213-unifikasi
ikp213-unifikasi
ย 
ikp213-06-horn-clause
ikp213-06-horn-clauseikp213-06-horn-clause
ikp213-06-horn-clause
ย 
ikp213-01-pendahuluan
ikp213-01-pendahuluanikp213-01-pendahuluan
ikp213-01-pendahuluan
ย 
ikd312-05-sqlite
ikd312-05-sqliteikd312-05-sqlite
ikd312-05-sqlite
ย 
ikd312-05-kalkulus-relasional
ikd312-05-kalkulus-relasionalikd312-05-kalkulus-relasional
ikd312-05-kalkulus-relasional
ย 
ikd312-04-aljabar-relasional
ikd312-04-aljabar-relasionalikd312-04-aljabar-relasional
ikd312-04-aljabar-relasional
ย 
ikd312-03-design
ikd312-03-designikd312-03-design
ikd312-03-design
ย 
ikd312-02-three-schema
ikd312-02-three-schemaikd312-02-three-schema
ikd312-02-three-schema
ย 
ikp213-02-pendahuluan
ikp213-02-pendahuluanikp213-02-pendahuluan
ikp213-02-pendahuluan
ย 
ikh311-08
ikh311-08ikh311-08
ikh311-08
ย 
ikh311-06
ikh311-06ikh311-06
ikh311-06
ย 
ikh311-05
ikh311-05ikh311-05
ikh311-05
ย 
ikp321-svn
ikp321-svnikp321-svn
ikp321-svn
ย 
ikh311-04
ikh311-04ikh311-04
ikh311-04
ย 
ikp321-05
ikp321-05ikp321-05
ikp321-05
ย 
imsakiyah-jakarta-1433-09
imsakiyah-jakarta-1433-09imsakiyah-jakarta-1433-09
imsakiyah-jakarta-1433-09
ย 
ikh311-03
ikh311-03ikh311-03
ikh311-03
ย 
ikp321-04
ikp321-04ikp321-04
ikp321-04
ย 
ikp321-03
ikp321-03ikp321-03
ikp321-03
ย 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
ย 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
ย 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
ย 

Recently uploaded (20)

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
ย 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
ย 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
ย 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
ย 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
ย 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
ย 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
ย 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
ย 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
ย 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
ย 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
ย 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
ย 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
ย 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
ย 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
ย 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
ย 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
ย 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
ย 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
ย 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
ย 

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