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 Managementmsdenee
Β 
Making your own bootloader
Making your own bootloaderMaking your own bootloader
Making your own bootloaderiamumr
Β 
Computer Motherboard
Computer MotherboardComputer Motherboard
Computer MotherboardShaikat Saha
Β 
Microprocessor based software developnent
Microprocessor based software developnentMicroprocessor based software developnent
Microprocessor based software developnentSandeep Kamath
Β 
07. Mainboard (System Board, Motherboard)
07. Mainboard (System Board, Motherboard)07. Mainboard (System Board, Motherboard)
07. Mainboard (System Board, Motherboard)Akhila Dakshina
Β 
Computer Hardware
Computer HardwareComputer Hardware
Computer Hardwaredheeraj87
Β 
Module 4. motherboard.
Module 4. motherboard.Module 4. motherboard.
Module 4. motherboard.kj_sherly
Β 
HARD DISK PARTITIONING,FORMATING
HARD DISK PARTITIONING,FORMATINGHARD DISK PARTITIONING,FORMATING
HARD DISK PARTITIONING,FORMATINGchiju chinnu
Β 
Computer hardware
Computer hardwareComputer hardware
Computer hardwareChinmoy Jena
Β 
Understanding The Boot Process
Understanding The Boot ProcessUnderstanding The Boot Process
Understanding The Boot ProcessDominique Cimafranca
Β 
Performing Disk Management Tasks
Performing Disk Management TasksPerforming Disk Management Tasks
Performing Disk Management TasksAmir Villas
Β 
Unix fundamentals
Unix fundamentalsUnix fundamentals
Unix fundamentalsBimal Jain
Β 
Assembling the computer
Assembling the computerAssembling the computer
Assembling the computerSantosh Kulkarni
Β 

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

Designing the Mobile Experience
Designing the Mobile ExperienceDesigning the Mobile Experience
Designing the Mobile ExperienceKaKi Law
Β 
Social Realism
Social RealismSocial Realism
Social Realismp102
Β 
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 BusinessesSasha Nunke
Β 
Tle4904 343973
Tle4904 343973Tle4904 343973
Tle4904 343973manthan patel
Β 
MRLC Feb Reading
MRLC Feb ReadingMRLC Feb Reading
MRLC Feb ReadingFaye Brownlie
Β 
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 DescriptionDave Gee
Β 
PHP & XML: SimpleXML, DOMDocument
PHP & XML: SimpleXML, DOMDocumentPHP & XML: SimpleXML, DOMDocument
PHP & XML: SimpleXML, DOMDocumentValentin Bora
Β 
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)Marian Madonia, CSP
Β 
Errenazimenduko pintura. Veneziako eskola ppt
Errenazimenduko pintura. Veneziako eskola pptErrenazimenduko pintura. Veneziako eskola ppt
Errenazimenduko pintura. Veneziako eskola pptasunasenjo
Β 
Office 365 + Windows Azure (del 2)
Office 365 + Windows Azure (del 2)Office 365 + Windows Azure (del 2)
Office 365 + Windows Azure (del 2)Wictor WilΓ©n
Β 
Global Conferencing Trends
Global Conferencing TrendsGlobal Conferencing Trends
Global Conferencing TrendsInterCall
Β 
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 1John Michitson
Β 
Quesnel.Adolescent Literacy.Feb 2016
Quesnel.Adolescent Literacy.Feb 2016Quesnel.Adolescent Literacy.Feb 2016
Quesnel.Adolescent Literacy.Feb 2016Faye Brownlie
Β 
Qualicum engagement.novpptx
Qualicum   engagement.novpptxQualicum   engagement.novpptx
Qualicum engagement.novpptxFaye Brownlie
Β 
soal-pemrograman-b
soal-pemrograman-bsoal-pemrograman-b
soal-pemrograman-bAnung Ariwibowo
Β 
Goodxi
GoodxiGoodxi
Goodxisad 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 Memory-Mapped I/O and Direct Memory Access in Sistem Operasi

Chapter 05
Chapter 05Chapter 05
Chapter 05 Google
Β 
Chapter-05.ppt
Chapter-05.pptChapter-05.ppt
Chapter-05.pptSarthakGoel39
Β 
5120224.ppt
5120224.ppt5120224.ppt
5120224.pptdedanndege
Β 
Lesson 2 Ppt V6
Lesson 2 Ppt V6Lesson 2 Ppt V6
Lesson 2 Ppt V6ipwk
Β 
Hard Disk Componets
Hard Disk ComponetsHard Disk Componets
Hard Disk ComponetsPramod Ithape
Β 
Ganesh naik linux_kernel_internals
Ganesh naik linux_kernel_internalsGanesh naik linux_kernel_internals
Ganesh naik linux_kernel_internalsnullowaspmumbai
Β 
Ganesh naik linux_kernel_internals
Ganesh naik linux_kernel_internalsGanesh naik linux_kernel_internals
Ganesh naik linux_kernel_internalsGanesh Naik
Β 
I/O System and Case study
I/O System and Case studyI/O System and Case study
I/O System and Case studyLavanya 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 VolatilityJoe Sylve
Β 
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 systemKumar Amit Mehta
Β 
Common computer myth’s
Common computer myth’sCommon computer myth’s
Common computer myth’sShiv Pratap Singh
Β 
Computerhardware 130909042641-
Computerhardware 130909042641-Computerhardware 130909042641-
Computerhardware 130909042641-zeyneptsd
Β 
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 Systemsgirmay 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 1Rajan Das
Β 
lec17-disks.ppt
lec17-disks.pptlec17-disks.ppt
lec17-disks.pptRandyGaray
Β 
Lecturedevicemanagement
LecturedevicemanagementLecturedevicemanagement
LecturedevicemanagementVikash Kumar
Β 
Lec3_Storage_Management.ppt
Lec3_Storage_Management.pptLec3_Storage_Management.ppt
Lec3_Storage_Management.pptDrAmarNathDhebla
Β 

Similar to Memory-Mapped I/O and Direct Memory Access in Sistem Operasi (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
Β 
OSCh14
OSCh14OSCh14
OSCh14
Β 

More from 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

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
Β 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
Β 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
Β 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
Β 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
Β 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
Β 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
Β 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
Β 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
Β 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
Β 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
Β 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
Β 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
Β 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
Β 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
Β 
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈcall girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ9953056974 Low Rate Call Girls In Saket, Delhi NCR
Β 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
Β 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
Β 

Recently uploaded (20)

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
Β 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Β 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
Β 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
Β 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
Β 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
Β 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
Β 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
Β 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
Β 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
Β 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
Β 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
Β 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
Β 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
Β 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
Β 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
Β 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
Β 
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈcall girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
Β 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
Β 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
Β 

Memory-Mapped I/O and Direct Memory Access in Sistem Operasi

  • 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