Wednesday, June 07, 2006 - PowerPoint PPT Presentation

1 / 25
About This Presentation
Title:

Wednesday, June 07, 2006

Description:

A multi-user, time-sharing operating system. ... Examples: embedded controllers such as nintendo, cars, elevators, cellphones ... Programmed I/O ... – PowerPoint PPT presentation

Number of Views:16
Avg rating:3.0/5.0
Slides: 26
Provided by: Erud
Category:
Tags: june | wednesday

less

Transcript and Presenter's Notes

Title: Wednesday, June 07, 2006


1
Wednesday, June 07, 2006
  • Unix is user friendly
  • its just picky about its friends.
  • - Anonymous

2
CS 381 Operating Systems
  • Course URL
  • http//suraj.lums.edu.pk/cs381m05
  • Folder on indus
  • \\indus\Common\cs381m05
  • Read course policies on the website!

3
  • Some design issues
  • I/O Space
  • Special IN/OUT instructions (use of assembly
    code)
  • Calling procedure adds overhead to I/O
  • Memory mapped
  • Con
  • Uses up some memory space
  • Caching of device registers should not be done!
  • Multiple buses
  • Pro
  • No extra protection needed to keep user processes
    from doing I/O

4
  • Unix
  • Initial project turned into multimillion dollar
    industry involving universities, government
    organizations, multinational corporations.
  • Late 1980s
  • ATT (System V) and UC, Berkeley, (BSD)
    incompatible versions
  • IEEE standard for UNIX
  • POSIX (defines minimal system call interface)

5
  • Unix
  • A multi-user, time-sharing operating system.
  • It can have many users logged into a system
    simultaneously, each running many programs.

6
  • Unix
  • Command based interface
  • Al most all UNIX systems support a windowing
    system as well
  • X-Windows
  • Developed at MIT

7
  • Linux
  • Underlying structure common to UNIX
  • Versions subsequent to MS-DOS included many
    advanced features taken from UNIX.
  • Our discussion shall apply to different
    versions/clones of UNIX like BSD, System V, Linux
    etc. (Sun Solaris has its own variant of UNIX).

8
  • Linux
  • Linux availability across a wide spectrum of
    platforms
  • Distributions implemented on 64-bit architecture
    processors.
  • Large enterprise servers
  • Medium sized and small servers, workstations
  • Desktops
  • Laptops
  • Small intelligent devices.

9
  • IBM Linux-based wrist watch.

10
  • Mainframe Operating Systems
  • Major organizations
  • Huge I/O capacity
  • Batch
  • Processes not requiring user interaction
  • (payroll processing, sales reporting )
  • Transaction Processing
  • Small requests e.g. bank system, airline systems
  • Time Sharing
  • large number of remote users
  • Example OS/390

11
  • Server Operating Systems
  • Major organizations
  • High end web-servers, commerce sites, file
    service etc.
  • UNIX, Windows Server, LINUX

12
  • Speechome Project, MIT
  • Massive petabyte (one million gigabyte) disk
    storage system at the Media Lab at MIT

13
  • Multiprocessor Operating Systems
  • Real Time Operating Systems
  • Embedded Operating Systems
  • Simple OS One program, one user, one machine
  • Examples embedded controllers such as nintendo,
    cars, elevators, cellphones

14
Ways to do I/O
  • Programmed I/O
  • User program makes a system call
  • That is translated into a procedure call for the
    relevant device driver
  • Device driver starts I/O and keeps polling the
    device to see if it is done (device busy status
    check).
  • When device is done it puts the data where
    needed.
  • OS returns control to user program

Disadvantage?
15
Ways to do I/O
  • Programmed I/O
  • Con
  • Busy waiting
  • Tying up CPU until I/O is done
  • Busy waiting is inefficient

16
Ways to do I/O
  • Programmed I/O
  • Con
  • Busy waiting
  • Tying up CPU until I/O is done
  • Busy waiting is inefficient
  • Pro
  • Easy to implement
  • Embedded systems

17
Ways to do I/O
  • Interrupt Driven I/O
  • Driver starts the device and asks it to give it
    an interrupt when it is done.

18
  • Interrupt Driven I/O
  • For example Read from Disk
  • Interrupt signal causes the CPU to stop what it
    is doing and use the interrupt number to start a
    interrupt service handler
  • When the handler is done control is returned to
    previously running user program
  • Information of interrupted program is saved
    before hand.

19
Ways to do I/O
  • Direct Memory Access (DMA)

20
BIOS
  • BIOS (Basic Input Output System) is a program
    that resides on the motherboard.
  • Can read from keyboard, write to disk, write to
    screen etc.

21
BIOS
  • Checks how much memory is installed, keyboard etc
    installed or not.
  • Scans buses and detects devices.
  • Determines boot device from the list stored in
    CMOS memory.

22
BIOS
  • First sector from boot device is read into memory
    and executed.
  • This gives information about which partition is
    active.
  • From there a boot loader is read which loads the
    OS
  • The OS queries the BIOS to get configuration
    information and checks if each device has a
    device driver
  • One all device drivers founds loads them in
    kernel starts login program.

23
BIOS
  • First sector from boot device is read into memory
    and executed.
  • This gives information about which partition is
    active.
  • From there a boot loader is read which loads the
    OS
  • The OS queries the BIOS to get configuration
    information and checks if each device has a
    device driver
  • One all device drivers founds loads them in
    kernel starts login program.

24
Memory
On chip cache
Optical disks, EEPROM, flash RAM
25
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com