Mehdi Naghavi naghavi@iust.ac.ir naghavi@aut.ac.ir Spring 1386 Operating Systems Mehdi Naghavi naghavi@iust.ac.ir naghavi@aut.ac.ir Spring 1386.

Slides:



Advertisements
Similar presentations
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Advertisements

Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 1 Embedded Computing.
© 2010 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Chapter 11: Structure and Union Types Problem Solving & Program Design.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
OPERATING SYSTEMS Lecturer: Szabolcs Mikulas Office: B38B
1 Processes and Threads Creation and Termination States Usage Implementations.
Chapter 5 Input/Output 5.1 Principles of I/O hardware
Chapter 6 File Systems 6.1 Files 6.2 Directories
1 Chapter 11 I/O Management and Disk Scheduling Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and.
Making the System Operational
INFORMATION TECHNOLOGY, THE INTERNET, AND YOU
Gabriel Honoré 1. What is it? A collection of software emulators –A software emulator is a computer program that imitates an electronic device or another.
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
Principles of I/O Hardware I/O Devices Block devices, Character devices, Others Speed Device Controllers Separation of electronic from mechanical components.
MODERN OPERATING SYSTEMS Third Edition ANDREW S
1 Disks Introduction ***-. 2 Disks: summary / overview / abstract The following gives an introduction to external memory for computers, focusing mainly.
The IP Revolution. Page 2 The IP Revolution IP Revolution Why now? The 3 Pillars of the IP Revolution How IP changes everything.
Chapter 5 Input/Output 5.1 Principles of I/O hardware
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5 5 Device Management.
I/O Systems.
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5 5 Device Management.
Chapter 4 Memory Management Basic memory management Swapping
ABC Technology Project
Project 5: Virtual Memory
Memory Management.
CS 6143 COMPUTER ARCHITECTURE II SPRING 2014 ACM Principles and Practice of Parallel Programming, PPoPP, 2006 Panel Presentations Parallel Processing is.
Operating Systems Operating Systems - Winter 2011 Dr. Melanie Rieback Design and Implementation.
Operating Systems Operating Systems - Winter 2012 Dr. Melanie Rieback Design and Implementation.
Operating Systems Operating Systems - Winter 2010 Chapter 3 – Input/Output Vrije Universiteit Amsterdam.
VOORBLAD.
Chapter 6 File Systems 6.1 Files 6.2 Directories
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
© 2012 National Heart Foundation of Australia. Slide 2.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
25 seconds left…...
1. 2 CST-092 Beginning Computer Windows Concepts Lecture 1: Computer Concepts Computer Concepts Getting Started.
Januar MDMDFSSMDMDFSSS
Chapter 10: The Traditional Approach to Design
Systems Analysis and Design in a Changing World, Fifth Edition
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
©2004 Brooks/Cole FIGURES FOR CHAPTER 12 REGISTERS AND COUNTERS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter.
PSSA Preparation.
13. Secondary Storage (S&G, Ch. 13)
TCP/IP Protocol Suite 1 Chapter 18 Upon completion you will be able to: Remote Login: Telnet Understand how TELNET works Understand the role of NVT in.
Operating Systems Operating Systems - Winter 2009 Chapter 3 – Input/Output Vrije Universiteit Amsterdam.
Part 5 (Stallings) Input/Output 5.1 Principles of I/O hardware
1 Input/Output Chapter Principles of I/O hardware 5.2 Principles of I/O software 5.3 I/O software layers 5.4 Disks 5.5 Clocks 5.6 Character-oriented.
Chapter 5 Input/Output Clocks User Interfaces: Keyboard, Mouse Power.
11/13/01CS-550 Presentation - Overview of Microsoft disk operating system. 1 An Overview of Microsoft Disk Operating System.
Chapter 5 Input/Output 5.1 Principles of I/O hardware
Input/Output The messiest part of O.S.
Pertemuan 20 Character oriented terminal
1 Input/Output Chapter 3 TOPICS Principles of I/O hardware Principles of I/O software I/O software layers Disks Clocks Reference: Operating Systems Design.
1 Input/Output. 2 Principles of I/O Hardware Some typical device, network, and data base rates.
IO and RAID.
Chapter 5: I/O Systems. Chapter 5 2 CS 1550, cs.pitt.edu (originaly modified by Ethan L. Miller and Scott A. Brandt) Input/Output Principles of I/O hardware.
Chapter 5 Input/Output 5.1 Principles of I/O hardware
CS703 - Advanced Operating Systems
Clock hardware Chapter 5 CS 1550, cs.pitt.edu (originaly modified by Ethan L. Miller and Scott A. Brandt)
Disks and scheduling algorithms
Presentation transcript:

Mehdi Naghavi naghavi@iust.ac.ir naghavi@aut.ac.ir Spring 1386 Operating Systems Mehdi Naghavi naghavi@iust.ac.ir naghavi@aut.ac.ir Spring 1386

Class outline Introduction and Overview Operating system structures Processes Scheduling Deadlocks Memory management Input/Output File Systems Security

Mehdi Naghavi naghavi@aut.ac.ir naghavi_mehdi@yahoo.com Spring 1386 Operating Systems Input/Output Systems Mehdi Naghavi naghavi@aut.ac.ir naghavi_mehdi@yahoo.com Spring 1386

Mehdi Naghavi naghavi@aut.ac.ir Spring 1386 Input/Output Systems Mehdi Naghavi naghavi@aut.ac.ir Spring 1386

Overview Principles of I/O hardware Principles of I/O software I/O software layers Disks Clocks Character-oriented terminals Graphical user interfaces Network terminals Power management

How to pick a disk scheduling algorithm SSTF is easy to implement and works OK if there aren’t too many disk requests in the queue SCAN-type algorithms perform better for systems under heavy load More fair than SSTF Use LOOK rather than SCAN algorithms to save time Long seeks aren’t too expensive, so choose C-LOOK over LOOK to make response time more even Disk request scheduling interacts with algorithms for allocating blocks to files Make scheduling algorithm modular: allow it to be changed without changing the file system Use SSTF for lightly loaded systems Use C-LOOK for heavily loaded systems

When good disks go bad… Disks have defects In 3M+ sectors, this isn’t surprising! ECC helps with errors, but sometimes this isn’t enough Disks keep spare sectors (normally unused) and remap bad sectors into these spares If there’s time, the whole track could be reordered…

Cost Main memory is much more expensive than disk storage The cost per megabyte of hard disk storage is competitive with magnetic tape if only one tape is used per drive. The cheapest tape drives and the cheapest disk drives have had about the same storage capacity over the years. Tertiary storage gives a cost savings only when the number of cartridges is considerably larger than the number of drives.

Price per Megabyte of DRAM (From 1981 to 2004)

Price per Megabyte of Hard Disk (From 1981 to 2004)

Price per Megabyte of a Tape Drive (From 1984-2000)

Clock hardware

Maintaining time of day

Doing multiple timers with a single clock

Soft timers A second clock may be available for timer interrupts Specified by applications No problems if interrupt frequency is low Soft timers avoid interrupts Kernel checks for soft timer expiration before it exits to user mode How well this works depends on rate of kernel entries

Character-oriented terminals An RS-232 terminal communicates with computer 1 bit at a time Called a serial line – bits go out in series, 1 bit at a time Windows uses COM1 and COM2 ports, first to serial lines Computer and terminal are completely independent

Buffering for input

Special terminal characters

Special output characters

Memory-mapped display Parallel port Driver writes directly into display's video RAM

How characters are displayed A video RAM image simple monochrome display character mode Corresponding screen the xs are attribute bytes

Input software Keyboard driver delivers a number Driver converts to characters Uses a ASCII table Exceptions, adaptations needed for other languages Many OS provide for loadable keymaps or code pages Example: characters such as ç

Output software for Windows Sample window located at (200,100) on XGA display

Character outlines at different point sizes

X Windows

Architecture of the SLIM terminal system

The SLIM Network Terminal

Power consumption of various parts of a laptop computer Power Management (1) Power consumption of various parts of a laptop computer

Power management (2) The use of zones for backlighting the display

Power Management (3) Running at full clock speed Cutting voltage by two cuts clock speed by two, cuts power by four

Telling the programs to use less energy Power Management (4) Telling the programs to use less energy may mean poorer user experience Examples change from color output to black and white speech recognition reduces vocabulary less resolution or detail in an image