Presentation is loading. Please wait.

Presentation is loading. Please wait.

Wednesday, June 07, 2006 “Unix is user friendly … it’s just picky about it’s friends”. - Anonymous.

Similar presentations


Presentation on theme: "Wednesday, June 07, 2006 “Unix is user friendly … it’s just picky about it’s friends”. - Anonymous."— Presentation transcript:

1 Wednesday, June 07, 2006 “Unix is user friendly … it’s just picky about it’s friends”. - Anonymous

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

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: l Uses up some memory space l Caching of device registers should not be done! l Multiple buses Pro l 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 … l AT&T (System V) and UC, Berkeley, (BSD) incompatible versions l 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 l X-Windows l Developed at MIT

7 §Linux l 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 l IBM Linux-based wrist watch.

10 Mainframe Operating Systems §Major organizations §Huge I/O capacity §Batch l Processes not requiring user interaction (payroll processing, sales reporting …) §Transaction Processing l Small requests e.g. bank system, airline systems §Time Sharing l 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 l 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 l Simple OS: One program, one user, one machine l Examples: embedded controllers such as nintendo, cars, elevators, cellphones …

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

15 Programmed I/O Con: §Busy waiting l Tying up CPU until I/O is done l Busy waiting is inefficient Ways to do I/O

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

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

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 Direct Memory Access (DMA) Ways to do I/O

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

21 §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. BIOS

22 §First sector from boot device is read into memory and executed. l This gives information about which partition is active. l 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 l One all device drivers founds loads them in kernel starts login program. BIOS

23 §First sector from boot device is read into memory and executed. l This gives information about which partition is active. l 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 l One all device drivers founds loads them in kernel starts login program. BIOS

24 Memory On chip cache Optical disks, EEPROM, flash RAM

25


Download ppt "Wednesday, June 07, 2006 “Unix is user friendly … it’s just picky about it’s friends”. - Anonymous."

Similar presentations


Ads by Google