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

Processes and Threads in Windows Vista
Processes and Threads in Windows VistaProcesses and Threads in Windows Vista
Processes and Threads in Windows Vista
Trinh Phuc Tho
 
Linux Process & CF scheduling
Linux Process & CF schedulingLinux Process & CF scheduling
Linux Process & CF scheduling
SangJung Woo
 
Process management
Process managementProcess management
Process management
Mohd Arif
 
Operating System 3
Operating System 3Operating System 3
Operating System 3
tech2click
 

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 (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

Os4 2
Os4 2Os4 2
Os4 2
issbp
 
operating system question bank
operating system question bankoperating system question bank
operating system question bank
rajatdeep kaur
 
Linux or unix interview questions
Linux or unix interview questionsLinux or unix interview questions
Linux or unix interview questions
Teja Bheemanapally
 
Introto netthreads-090906214344-phpapp01
Introto netthreads-090906214344-phpapp01Introto netthreads-090906214344-phpapp01
Introto netthreads-090906214344-phpapp01
Aravindharamanan S
 
Servers and Processes: Behavior and Analysis
Servers and Processes: Behavior and AnalysisServers and Processes: Behavior and Analysis
Servers and Processes: Behavior and Analysis
dreamwidth
 

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 ARCHITECTURE
Najma Alam
 
Masnoon Duaa'en
Masnoon Duaa'enMasnoon Duaa'en
Masnoon Duaa'en
Najma 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.0
Najma Alam
 
Introduction to Excel
Introduction to ExcelIntroduction to Excel
Introduction to Excel
Najma Alam
 
File Management
File ManagementFile Management
File Management
Najma Alam
 
Introduction to Computer Applications
Introduction to Computer ApplicationsIntroduction to Computer Applications
Introduction to Computer Applications
Najma Alam
 
Surah-e-Fatiha
Surah-e-FatihaSurah-e-Fatiha
Surah-e-Fatiha
Najma Alam
 
Applications of Thermal Expansion
Applications of Thermal ExpansionApplications of Thermal Expansion
Applications of Thermal Expansion
Najma 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 materials
Najma 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

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 

Recently uploaded (20)

Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 

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.