SlideShare a Scribd company logo
1 of 28
2
 Computer
hardware is a
physical
components of the
computer.
Chapter 1 3
 Software is a general
term for the various
kinds of programs
used to operate
computers and related
devices. (The term
hardware describes
the physical aspects
of computers and
related devices.)
Time(workload) = Time(CPU) + Time(I/O) - Time(Overlap)
Disk Disk NetworkGraphics
I/O
Controller
I/O
Controller
I/O
Controller
Processor
Cache
Memory - I/O Bus
Main
Memory
interrupts
Input/Output
Le
ctu
re
1 -
4
Input/Output
Le
ctu
re
1 -
5
 Historical Context of Storage and I/O
 Secondary and Tertiary Storage Devices
 Storage I/O Performance Measures
 Queuing Theory
 Processor Interface Issues
 I/O Buses
 Redundant Arrays of Inexpensive Disks (RAID)
 File Systems
 I/O Benchmarks
 File System Performance
Computer Application in Architectures
Sir Kashif
 A program that runs on the “raw” hardware and supports
◦ Resource Abstraction
◦ Resource Sharing
 Abstracts and standardizes the interface to the user across
different types of hardware
◦ Virtual machine hides the messy details which must be performed
 Manages the hardware resources
◦ Each program gets time with the resource
◦ Each program gets space on the resource
 May have potentially conflicting goals:
◦ Use hardware efficiently
◦ Give maximum performance to each user
Chapter 1 7
 First generation: 1945 – 1955
◦ Vacuum tubes
◦ Plug boards
 Second generation: 1955 – 1965
◦ Transistors
◦ Batch systems
 Third generation: 1965 – 1980
◦ Integrated circuits
◦ Multiprogramming
 Fourth generation: 1980 – present
◦ Large scale integration
◦ Personal computers
 Next generation: ???
◦ Systems connected by high-speed networks?
◦ Wide area resource management?
Chapter 1 8
 Run one job at a time
◦ Enter it into the computer (might require rewiring!)
◦ Run it
◦ Record the results
 Problem: lots of wasted computer time!
◦ Computer was idle during first and last steps
◦ Computers were very expensive!
 Goal: make better use of an expensive
commodity: computer time
Chapter 1 9
 Bring cards to 1401
 Read cards onto input tape
 Put input tape on 7094
 Perform the computation, writing results to output tape
 Put output tape on 1401, which prints output
Chapter 1 10
 Original batch systems used tape drives
 Later batch systems used disks for buffering
◦ Operator read cards onto disk attached to the computer
◦ Computer read jobs from disk
◦ Computer wrote job results to disk
◦ Operator directed that job results be printed from disk
 Disks enabled simultaneous peripheral operation on-
line (spooling)
◦ Computer overlapped I/O of one job with execution of another
◦ Better utilization of the expensive CPU
◦ Still only one job active at any given time
Chapter 1 11
 Multiple jobs in memory
◦ Protected from one another
 Operating system protected
from each job as well
 Resources (time,
hardware) split between
jobs
 Still not interactive
◦ User submits job
◦ Computer runs it
◦ User gets results minutes
(hours, days) later
Chapter 1 12
Operating
system
Job 1
Job 2
Job 3
Memory
partitions
 Multiprogramming allowed several jobs to be
active at one time
◦ Initially used for batch systems
◦ Cheaper hardware terminals -> interactive use
 Computer use got much cheaper and easier
◦ No more “priesthood”
◦ Quick turnaround meant quick fixes for problems
Chapter 1 13
14
◦ The creation and deletion of both user and system
processes
◦ b. The suspension and resumption of processes
◦ c. The provision of mechanisms for process
synchronization
◦ d. The provision of mechanisms for process
communication
◦ e. The provision of mechanisms for deadlock
handling
 Mainframe operating systems: MVS
 Server operating systems: FreeBSD, Solaris
 Multiprocessor operating systems: Cellular IRIX
 Personal computer operating systems: Windows,
Unix
 Real-time operating systems: VxWorks
 Embedded operating systems
 Smart card operating systems
⇒Some operating systems can fit into more than
one category
Chapter 1 15
Chapter 1 16
Hard drive
controller
Video
controller
Memory
USB
controller
Network
controller
Outside
world
CPU
Computer internals
(inside the “box”)
Chapter 1 17
Execute
unit
Execute
unit
Execute
unit
Execute
unit
Buffer
Fetch
unit
Decode
unit
Fetch
unit
Decode
unit
Fetch
unit
Decode
unit
Pipelined CPU Superscalar CPU
 Many of these should be familiar to Unix users…
 Processes (and trees of processes)
 Deadlock
 File systems & directory trees
 Pipes
 We’ll cover all of these in more depth later on, but
it’s useful to have some basic definitions now
Chapter 1 18
Chapter 1 19
Potential deadlock Actual deadlock
Chapter 1 20
Root directory
bin cse
faculty grads
ls ps cp csh
elm sbrandt kag amer4
stuff
classes research
stuff
 Processes want to exchange information with each
other
 Many ways to do this, including
◦ Network
◦ Pipe (special file): A writes into pipe, and B reads from it
Chapter 1 21
A B
 Programs want the OS to perform a service
◦ Access a file
◦ Create a process
◦ Others…
 Accomplished by system call
◦ Program passes relevant information to OS
◦ OS performs the service if
 The OS is able to do so
 The service is permitted for this program at this time
◦ OS checks information passed to make sure it’s OK
 Don’t want programs reading data into other programs’
memory!
Chapter 1 22
 System call:
read(fd,buffer,length)
 Program pushes
arguments, calls library
 Library sets up trap, calls
OS
 OS handles system call
 Control returns to library
 Library returns to user
program
Chapter 1 23
Return to caller
Trap to kernel
Trap code in register
Increment SP
Call read
Push arguments
Dispatch
Sys call
handler
Kernel
space
(OS)
User
space
0
0xffffffff
1
2
3
4
5 6
7
8
9
Library
(read call)
User
code
Chapter 1 24
Call Description
fd = open(name,how) Open a file for reading and/or writing
s = close(fd) Close an open file
n = read(fd,buffer,size) Read data from a file into a buffer
n = write(fd,buffer,size) Write data from a buffer into a file
s = lseek(fd,offset,whence) Move the “current” pointer for a file
s = stat(name,&buffer) Get a file’s status information (in buffer)
s = mkdir(name,mode) Create a new directory
s = rmdir(name) Remove a directory (must be empty)
s = link(name1,name2) Create a new entry (name2) that points to the
same object as name1
s = unlink(name) Remove name as a link to an object (deletes
the object if name was the only link to it)
Chapter 1 25
Call Description
pid = fork() Create a child process identical to the
parent
pid=waitpid(pid,&statloc,options) Wait for a child to terminate
s = execve(name,argv,environp) Replace a process’ core image
exit(status) Terminate process execution and return
status
s = chdir(dirname) Change the working directory
s = chmod(name,mode) Change a file’s protection bits
s = kill(pid,signal) Send a signal to a process
seconds = time(&seconds) Get the elapsed time since 1 Jan 1970
Chapter 1 26
Exp. Number Prefix Exp. Number Prefix
10-3 0.001 milli 103 1,000 Kilo
10-6 0.000001 micro 106 1,000,000 Mega
10-9 0.000000001 nano 109 1,000,000,000 Giga
10-12 0.000000000001 pico 1012 1,000,000,000,000 Tera
10-15 0.000000000000001 femto 1015 1,000,000,000,000,000 Peta
10-18 0.000000000000000001 atto 1018 1,000,000,000,000,000,000 Exa
Bubble sort, also known as sinking sort, is a simple sorting algorithm that
works by repeatedly stepping through the list to be sorted, comparing each pair
of adjacent items and swapping them if they are in the wrong order.
A bubble sort, a sorting algorithm that continuously steps through a list,
swapping items until they appear in the correct order.
Let us take the array of numbers "5 1 4 2 8", and sort the array from lowest number to greatest number
using bubble sort algorithm. In each step, elements written in bold are being compared.
First Pass:
( 5 1 4 2 8 ) ( 1 5 4 2 8 ), Here, algorithm compares the first two elements, and swaps them.
( 1 5 4 2 8 ) ( 1 4 5 2 8 ), Swap since 5 > 4
( 1 4 5 2 8 ) ( 1 4 2 5 8 ), Swap since 5 > 2
( 1 4 2 5 8 ) ( 1 4 2 5 8 ), Now, since these elements are already in order (8 > 5), algorithm does not
swap them.
Second Pass:
( 1 4 2 5 8 ) ( 1 4 2 5 8 )
( 1 4 2 5 8 ) ( 1 2 4 5 8 ), Swap since 4 > 2
( 1 2 4 5 8 ) ( 1 2 4 5 8 )
( 1 2 4 5 8 ) ( 1 2 4 5 8 )
Now, the array is already sorted, but our algorithm does not know if it is completed. The algorithm needs
one whole pass without any swap to know it is sorted.
Third Pass:
( 1 2 4 5 8 ) ( 1 2 4 5 8 )
( 1 2 4 5 8 ) ( 1 2 4 5 8 )
( 1 2 4 5 8 ) ( 1 2 4 5 8 )
( 1 2 4 5 8 ) ( 1 2 4 5 8 )
Finally, the array is sorted, and the algorithm can terminate.

More Related Content

What's hot

Scheduling in Linux and Web Servers
Scheduling in Linux and Web ServersScheduling in Linux and Web Servers
Scheduling in Linux and Web ServersDavid Evans
 
Processes and Threads in Windows Vista
Processes and Threads in Windows VistaProcesses and Threads in Windows Vista
Processes and Threads in Windows VistaTrinh Phuc Tho
 
Structure of processes ppt
Structure of processes pptStructure of processes ppt
Structure of processes pptYojana Nanaware
 
Linux Process & CF scheduling
Linux Process & CF schedulingLinux Process & CF scheduling
Linux Process & CF schedulingSangJung Woo
 
Process management
Process managementProcess management
Process managementMohd Arif
 
Operating System 3
Operating System 3Operating System 3
Operating System 3tech2click
 
Making a Process (Virtualizing Memory)
Making a Process (Virtualizing Memory)Making a Process (Virtualizing Memory)
Making a Process (Virtualizing Memory)David Evans
 
Writing Character driver (loadable module) in linux
Writing Character driver (loadable module) in linuxWriting Character driver (loadable module) in linux
Writing Character driver (loadable module) in linuxRajKumar Rampelli
 
Real Time Operating System Concepts
Real Time Operating System ConceptsReal Time Operating System Concepts
Real Time Operating System ConceptsSanjiv Malik
 
Linux scheduling and input and output
Linux scheduling and input and outputLinux scheduling and input and output
Linux scheduling and input and outputSanidhya Chugh
 
Linux Char Device Driver
Linux Char Device DriverLinux Char Device Driver
Linux Char Device DriverGary Yeh
 

What's hot (19)

process creation OS
process creation OSprocess creation OS
process creation OS
 
Scheduling in Linux and Web Servers
Scheduling in Linux and Web ServersScheduling in Linux and Web Servers
Scheduling in Linux and Web Servers
 
Processes and Threads in Windows Vista
Processes and Threads in Windows VistaProcesses and Threads in Windows Vista
Processes and Threads in Windows Vista
 
Structure of processes ppt
Structure of processes pptStructure of processes ppt
Structure of processes ppt
 
Linux Process & CF scheduling
Linux Process & CF schedulingLinux Process & CF scheduling
Linux Process & CF scheduling
 
Lecture 5 process concept
Lecture 5   process conceptLecture 5   process concept
Lecture 5 process concept
 
Process management
Process managementProcess management
Process management
 
Operating System 3
Operating System 3Operating System 3
Operating System 3
 
Process scheduling linux
Process scheduling linuxProcess scheduling linux
Process scheduling linux
 
Completeosnotes
CompleteosnotesCompleteosnotes
Completeosnotes
 
Os lab final
Os lab finalOs lab final
Os lab final
 
Os notes
Os notesOs notes
Os notes
 
水晶礦脈
水晶礦脈水晶礦脈
水晶礦脈
 
Making a Process (Virtualizing Memory)
Making a Process (Virtualizing Memory)Making a Process (Virtualizing Memory)
Making a Process (Virtualizing Memory)
 
Writing Character driver (loadable module) in linux
Writing Character driver (loadable module) in linuxWriting Character driver (loadable module) in linux
Writing Character driver (loadable module) in linux
 
Real Time Operating System Concepts
Real Time Operating System ConceptsReal Time Operating System Concepts
Real Time Operating System Concepts
 
Linux scheduling and input and output
Linux scheduling and input and outputLinux scheduling and input and output
Linux scheduling and input and output
 
Linux watchdog timer
Linux watchdog timerLinux watchdog timer
Linux watchdog timer
 
Linux Char Device Driver
Linux Char Device DriverLinux Char Device Driver
Linux Char Device Driver
 

Viewers also liked

Slides input devices
Slides input devicesSlides input devices
Slides input devicesHusni Munirah
 
Curriculum Evaluation Through Learning Assessment
Curriculum Evaluation Through Learning AssessmentCurriculum Evaluation Through Learning Assessment
Curriculum Evaluation Through Learning AssessmentJoan Bahian
 
Input Output Operations
Input Output OperationsInput Output Operations
Input Output Operationskdisthere
 
Curriculum evaluation through learning assessment
Curriculum evaluation through learning assessmentCurriculum evaluation through learning assessment
Curriculum evaluation through learning assessmentSharon Ballasiw
 
Presentation on Input and Output Devices
Presentation on Input and Output DevicesPresentation on Input and Output Devices
Presentation on Input and Output DevicesZobia Aziz
 

Viewers also liked (7)

Slides input devices
Slides input devicesSlides input devices
Slides input devices
 
Curriculum Evaluation Through Learning Assessment
Curriculum Evaluation Through Learning AssessmentCurriculum Evaluation Through Learning Assessment
Curriculum Evaluation Through Learning Assessment
 
Input Output Operations
Input Output OperationsInput Output Operations
Input Output Operations
 
Curriculum evaluation through learning assessment
Curriculum evaluation through learning assessmentCurriculum evaluation through learning assessment
Curriculum evaluation through learning assessment
 
Input Devices
Input DevicesInput Devices
Input Devices
 
Presentation on Input and Output Devices
Presentation on Input and Output DevicesPresentation on Input and Output Devices
Presentation on Input and Output Devices
 
Input and output devices
Input and output devicesInput and output devices
Input and output devices
 

Similar to Input and Output Devices and Systems

Operating Systems: Revision
Operating Systems: RevisionOperating Systems: Revision
Operating Systems: RevisionDamian T. Gordon
 
Unix fundamentals
Unix fundamentalsUnix fundamentals
Unix fundamentalsBimal Jain
 
Chapter 8 : Memory
Chapter 8 : MemoryChapter 8 : Memory
Chapter 8 : MemoryAmin Omi
 
Lecture_Slide_4.pptx
Lecture_Slide_4.pptxLecture_Slide_4.pptx
Lecture_Slide_4.pptxDiptoRoy21
 
Os4 2
Os4 2Os4 2
Os4 2issbp
 
operating system question bank
operating system question bankoperating system question bank
operating system question bankrajatdeep kaur
 
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSVTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSvtunotesbysree
 
Process management
Process managementProcess management
Process managementBirju Tank
 
Bca i-fundamental of computer-u-3-functions operating systems
Bca  i-fundamental of  computer-u-3-functions operating systemsBca  i-fundamental of  computer-u-3-functions operating systems
Bca i-fundamental of computer-u-3-functions operating systemsRai University
 
Linux or unix interview questions
Linux or unix interview questionsLinux or unix interview questions
Linux or unix interview questionsTeja Bheemanapally
 
Introto netthreads-090906214344-phpapp01
Introto netthreads-090906214344-phpapp01Introto netthreads-090906214344-phpapp01
Introto netthreads-090906214344-phpapp01Aravindharamanan S
 
Servers and Processes: Behavior and Analysis
Servers and Processes: Behavior and AnalysisServers and Processes: Behavior and Analysis
Servers and Processes: Behavior and Analysisdreamwidth
 

Similar to Input and Output Devices and Systems (20)

Operating Systems: Revision
Operating Systems: RevisionOperating Systems: Revision
Operating Systems: Revision
 
Operating system ppt
Operating system pptOperating system ppt
Operating system ppt
 
Operating system ppt
Operating system pptOperating system ppt
Operating system ppt
 
Operating system ppt
Operating system pptOperating system ppt
Operating system ppt
 
Operating system ppt
Operating system pptOperating system ppt
Operating system ppt
 
Operating Systems
Operating Systems Operating Systems
Operating Systems
 
Cs8493 unit 2
Cs8493 unit 2Cs8493 unit 2
Cs8493 unit 2
 
Linux Internals - Part II
Linux Internals - Part IILinux Internals - Part II
Linux Internals - Part II
 
Unix fundamentals
Unix fundamentalsUnix fundamentals
Unix fundamentals
 
Chapter 8 : Memory
Chapter 8 : MemoryChapter 8 : Memory
Chapter 8 : Memory
 
Lecture_Slide_4.pptx
Lecture_Slide_4.pptxLecture_Slide_4.pptx
Lecture_Slide_4.pptx
 
Os4 2
Os4 2Os4 2
Os4 2
 
operating system question bank
operating system question bankoperating system question bank
operating system question bank
 
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSVTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
 
Process management
Process managementProcess management
Process management
 
01.osdoc
01.osdoc01.osdoc
01.osdoc
 
Bca i-fundamental of computer-u-3-functions operating systems
Bca  i-fundamental of  computer-u-3-functions operating systemsBca  i-fundamental of  computer-u-3-functions operating systems
Bca i-fundamental of computer-u-3-functions operating systems
 
Linux or unix interview questions
Linux or unix interview questionsLinux or unix interview questions
Linux or unix interview questions
 
Introto netthreads-090906214344-phpapp01
Introto netthreads-090906214344-phpapp01Introto netthreads-090906214344-phpapp01
Introto netthreads-090906214344-phpapp01
 
Servers and Processes: Behavior and Analysis
Servers and Processes: Behavior and AnalysisServers and Processes: Behavior and Analysis
Servers and Processes: Behavior and Analysis
 

More from Najma Alam

HISTORY OF ARCHITECTURE
HISTORY OF ARCHITECTUREHISTORY OF ARCHITECTURE
HISTORY OF ARCHITECTURENajma Alam
 
Masnoon Duaa'en
Masnoon Duaa'enMasnoon Duaa'en
Masnoon Duaa'enNajma Alam
 
Getting started with Adobe Photoshop 7.0
Getting started with Adobe Photoshop 7.0Getting started with Adobe Photoshop 7.0
Getting started with Adobe Photoshop 7.0Najma Alam
 
Introduction to Excel
Introduction to ExcelIntroduction to Excel
Introduction to ExcelNajma Alam
 
File Management
File ManagementFile Management
File ManagementNajma Alam
 
Introduction to Computer Applications
Introduction to Computer ApplicationsIntroduction to Computer Applications
Introduction to Computer ApplicationsNajma Alam
 
Surah-e-Fatiha
Surah-e-FatihaSurah-e-Fatiha
Surah-e-FatihaNajma Alam
 
Applications of Thermal Expansion
Applications of Thermal ExpansionApplications of Thermal Expansion
Applications of Thermal ExpansionNajma Alam
 
What is Telecom Engineering?
What is Telecom Engineering?What is Telecom Engineering?
What is Telecom Engineering?Najma Alam
 
Thermal properties of materials
Thermal properties of materialsThermal properties of materials
Thermal properties of materialsNajma Alam
 

More from Najma Alam (11)

HISTORY OF ARCHITECTURE
HISTORY OF ARCHITECTUREHISTORY OF ARCHITECTURE
HISTORY OF ARCHITECTURE
 
Masnoon Duaa'en
Masnoon Duaa'enMasnoon Duaa'en
Masnoon Duaa'en
 
Makharij
MakharijMakharij
Makharij
 
Getting started with Adobe Photoshop 7.0
Getting started with Adobe Photoshop 7.0Getting started with Adobe Photoshop 7.0
Getting started with Adobe Photoshop 7.0
 
Introduction to Excel
Introduction to ExcelIntroduction to Excel
Introduction to Excel
 
File Management
File ManagementFile Management
File Management
 
Introduction to Computer Applications
Introduction to Computer ApplicationsIntroduction to Computer Applications
Introduction to Computer Applications
 
Surah-e-Fatiha
Surah-e-FatihaSurah-e-Fatiha
Surah-e-Fatiha
 
Applications of Thermal Expansion
Applications of Thermal ExpansionApplications of Thermal Expansion
Applications of Thermal Expansion
 
What is Telecom Engineering?
What is Telecom Engineering?What is Telecom Engineering?
What is Telecom Engineering?
 
Thermal properties of materials
Thermal properties of materialsThermal properties of materials
Thermal properties of materials
 

Recently uploaded

System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
OOP concepts -in-Python programming language
OOP concepts -in-Python programming languageOOP concepts -in-Python programming language
OOP concepts -in-Python programming languageSmritiSharma901052
 
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdfAkritiPradhan2
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Erbil Polytechnic University
 
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionCost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionSneha Padhiar
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewsandhya757531
 
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfList of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfisabel213075
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communicationpanditadesh123
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdfHafizMudaserAhmad
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdfsahilsajad201
 
signals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsignals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsapna80328
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Sumanth A
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodManicka Mamallan Andavar
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfDrew Moseley
 
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMSHigh Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMSsandhya757531
 

Recently uploaded (20)

System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
OOP concepts -in-Python programming language
OOP concepts -in-Python programming languageOOP concepts -in-Python programming language
OOP concepts -in-Python programming language
 
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
 
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionCost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based question
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overview
 
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfList of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdf
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communication
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdf
 
signals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsignals in triangulation .. ...Surveying
signals in triangulation .. ...Surveying
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument method
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdf
 
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMSHigh Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
 

Input and Output Devices and Systems

  • 1.
  • 2. 2
  • 3.  Computer hardware is a physical components of the computer. Chapter 1 3  Software is a general term for the various kinds of programs used to operate computers and related devices. (The term hardware describes the physical aspects of computers and related devices.)
  • 4. Time(workload) = Time(CPU) + Time(I/O) - Time(Overlap) Disk Disk NetworkGraphics I/O Controller I/O Controller I/O Controller Processor Cache Memory - I/O Bus Main Memory interrupts Input/Output Le ctu re 1 - 4
  • 5. Input/Output Le ctu re 1 - 5  Historical Context of Storage and I/O  Secondary and Tertiary Storage Devices  Storage I/O Performance Measures  Queuing Theory  Processor Interface Issues  I/O Buses  Redundant Arrays of Inexpensive Disks (RAID)  File Systems  I/O Benchmarks  File System Performance Computer Application in Architectures
  • 7.  A program that runs on the “raw” hardware and supports ◦ Resource Abstraction ◦ Resource Sharing  Abstracts and standardizes the interface to the user across different types of hardware ◦ Virtual machine hides the messy details which must be performed  Manages the hardware resources ◦ Each program gets time with the resource ◦ Each program gets space on the resource  May have potentially conflicting goals: ◦ Use hardware efficiently ◦ Give maximum performance to each user Chapter 1 7
  • 8.  First generation: 1945 – 1955 ◦ Vacuum tubes ◦ Plug boards  Second generation: 1955 – 1965 ◦ Transistors ◦ Batch systems  Third generation: 1965 – 1980 ◦ Integrated circuits ◦ Multiprogramming  Fourth generation: 1980 – present ◦ Large scale integration ◦ Personal computers  Next generation: ??? ◦ Systems connected by high-speed networks? ◦ Wide area resource management? Chapter 1 8
  • 9.  Run one job at a time ◦ Enter it into the computer (might require rewiring!) ◦ Run it ◦ Record the results  Problem: lots of wasted computer time! ◦ Computer was idle during first and last steps ◦ Computers were very expensive!  Goal: make better use of an expensive commodity: computer time Chapter 1 9
  • 10.  Bring cards to 1401  Read cards onto input tape  Put input tape on 7094  Perform the computation, writing results to output tape  Put output tape on 1401, which prints output Chapter 1 10
  • 11.  Original batch systems used tape drives  Later batch systems used disks for buffering ◦ Operator read cards onto disk attached to the computer ◦ Computer read jobs from disk ◦ Computer wrote job results to disk ◦ Operator directed that job results be printed from disk  Disks enabled simultaneous peripheral operation on- line (spooling) ◦ Computer overlapped I/O of one job with execution of another ◦ Better utilization of the expensive CPU ◦ Still only one job active at any given time Chapter 1 11
  • 12.  Multiple jobs in memory ◦ Protected from one another  Operating system protected from each job as well  Resources (time, hardware) split between jobs  Still not interactive ◦ User submits job ◦ Computer runs it ◦ User gets results minutes (hours, days) later Chapter 1 12 Operating system Job 1 Job 2 Job 3 Memory partitions
  • 13.  Multiprogramming allowed several jobs to be active at one time ◦ Initially used for batch systems ◦ Cheaper hardware terminals -> interactive use  Computer use got much cheaper and easier ◦ No more “priesthood” ◦ Quick turnaround meant quick fixes for problems Chapter 1 13
  • 14. 14 ◦ The creation and deletion of both user and system processes ◦ b. The suspension and resumption of processes ◦ c. The provision of mechanisms for process synchronization ◦ d. The provision of mechanisms for process communication ◦ e. The provision of mechanisms for deadlock handling
  • 15.  Mainframe operating systems: MVS  Server operating systems: FreeBSD, Solaris  Multiprocessor operating systems: Cellular IRIX  Personal computer operating systems: Windows, Unix  Real-time operating systems: VxWorks  Embedded operating systems  Smart card operating systems ⇒Some operating systems can fit into more than one category Chapter 1 15
  • 16. Chapter 1 16 Hard drive controller Video controller Memory USB controller Network controller Outside world CPU Computer internals (inside the “box”)
  • 18.  Many of these should be familiar to Unix users…  Processes (and trees of processes)  Deadlock  File systems & directory trees  Pipes  We’ll cover all of these in more depth later on, but it’s useful to have some basic definitions now Chapter 1 18
  • 19. Chapter 1 19 Potential deadlock Actual deadlock
  • 20. Chapter 1 20 Root directory bin cse faculty grads ls ps cp csh elm sbrandt kag amer4 stuff classes research stuff
  • 21.  Processes want to exchange information with each other  Many ways to do this, including ◦ Network ◦ Pipe (special file): A writes into pipe, and B reads from it Chapter 1 21 A B
  • 22.  Programs want the OS to perform a service ◦ Access a file ◦ Create a process ◦ Others…  Accomplished by system call ◦ Program passes relevant information to OS ◦ OS performs the service if  The OS is able to do so  The service is permitted for this program at this time ◦ OS checks information passed to make sure it’s OK  Don’t want programs reading data into other programs’ memory! Chapter 1 22
  • 23.  System call: read(fd,buffer,length)  Program pushes arguments, calls library  Library sets up trap, calls OS  OS handles system call  Control returns to library  Library returns to user program Chapter 1 23 Return to caller Trap to kernel Trap code in register Increment SP Call read Push arguments Dispatch Sys call handler Kernel space (OS) User space 0 0xffffffff 1 2 3 4 5 6 7 8 9 Library (read call) User code
  • 24. Chapter 1 24 Call Description fd = open(name,how) Open a file for reading and/or writing s = close(fd) Close an open file n = read(fd,buffer,size) Read data from a file into a buffer n = write(fd,buffer,size) Write data from a buffer into a file s = lseek(fd,offset,whence) Move the “current” pointer for a file s = stat(name,&buffer) Get a file’s status information (in buffer) s = mkdir(name,mode) Create a new directory s = rmdir(name) Remove a directory (must be empty) s = link(name1,name2) Create a new entry (name2) that points to the same object as name1 s = unlink(name) Remove name as a link to an object (deletes the object if name was the only link to it)
  • 25. Chapter 1 25 Call Description pid = fork() Create a child process identical to the parent pid=waitpid(pid,&statloc,options) Wait for a child to terminate s = execve(name,argv,environp) Replace a process’ core image exit(status) Terminate process execution and return status s = chdir(dirname) Change the working directory s = chmod(name,mode) Change a file’s protection bits s = kill(pid,signal) Send a signal to a process seconds = time(&seconds) Get the elapsed time since 1 Jan 1970
  • 26. Chapter 1 26 Exp. Number Prefix Exp. Number Prefix 10-3 0.001 milli 103 1,000 Kilo 10-6 0.000001 micro 106 1,000,000 Mega 10-9 0.000000001 nano 109 1,000,000,000 Giga 10-12 0.000000000001 pico 1012 1,000,000,000,000 Tera 10-15 0.000000000000001 femto 1015 1,000,000,000,000,000 Peta 10-18 0.000000000000000001 atto 1018 1,000,000,000,000,000,000 Exa
  • 27. Bubble sort, also known as sinking sort, is a simple sorting algorithm that works by repeatedly stepping through the list to be sorted, comparing each pair of adjacent items and swapping them if they are in the wrong order. A bubble sort, a sorting algorithm that continuously steps through a list, swapping items until they appear in the correct order.
  • 28. Let us take the array of numbers "5 1 4 2 8", and sort the array from lowest number to greatest number using bubble sort algorithm. In each step, elements written in bold are being compared. First Pass: ( 5 1 4 2 8 ) ( 1 5 4 2 8 ), Here, algorithm compares the first two elements, and swaps them. ( 1 5 4 2 8 ) ( 1 4 5 2 8 ), Swap since 5 > 4 ( 1 4 5 2 8 ) ( 1 4 2 5 8 ), Swap since 5 > 2 ( 1 4 2 5 8 ) ( 1 4 2 5 8 ), Now, since these elements are already in order (8 > 5), algorithm does not swap them. Second Pass: ( 1 4 2 5 8 ) ( 1 4 2 5 8 ) ( 1 4 2 5 8 ) ( 1 2 4 5 8 ), Swap since 4 > 2 ( 1 2 4 5 8 ) ( 1 2 4 5 8 ) ( 1 2 4 5 8 ) ( 1 2 4 5 8 ) Now, the array is already sorted, but our algorithm does not know if it is completed. The algorithm needs one whole pass without any swap to know it is sorted. Third Pass: ( 1 2 4 5 8 ) ( 1 2 4 5 8 ) ( 1 2 4 5 8 ) ( 1 2 4 5 8 ) ( 1 2 4 5 8 ) ( 1 2 4 5 8 ) ( 1 2 4 5 8 ) ( 1 2 4 5 8 ) Finally, the array is sorted, and the algorithm can terminate.

Editor's Notes

  1. Analogue types of Computer uses what is known as analogue signals that are represented by a continuous set of varying voltages and are used in scientific research centers?, hospitals and flight centers With analogue types of computer no values are represented by physical measurable quantities e.g. voltages. Analogue computer types program arithmetic and logical operations by measuring physical changes i.e. temperatures or pressure. Digital Computer type With these types of computers operation are on electrical input that can attain two inputs, states of ON=1 and state of OFF = 0. With digital type of computers data is represented by digital of 0 and 1 or off state and on state. Digital computer type recognizes data by counting discrete signal of (0 0r 1), they are high speed programmable; they compute values and stores results. After looking at the Digital computer type and how it functions will move to the third computer type as mentioned above. Hybrid type of Computer Hybrid computer types are very unique, in the sense that they combined both analogue and digital features and operations. With Hybrid computers operate by using digital to analogue convertor and analogue to digital convertor. By linking the two types of computer above you come up with this new computer type called Hybrid.
  2. Got here on the first day of class.