Presentation on theme: "Operating Systems What do you have left on your computer after you strip away all of the games and application programs you bought and installed? Name."— Presentation transcript:
1 Operating SystemsWhat do you have left on your computer after you stripaway all of the games and application programs you bought and installed?Name some Operating Systems:Mac OS, Windows XP, MS DOS, UNIX, Linux
2 What is an operating system? The operating system: A collection of programs that manages and controls applications and other software, and coordinates the various hardware components to perform tasks requested by the user.Controls both Hardware and SoftwareAllows use of (partial list!)the keyboardthe mouseprinting to a printer of your choiceviewing information on a monitorsaving or retrieving filesformatting a diskrunning programscontrolling any external device attached to the computer
3 History Loader: first program to become part of the Operating System The loader took care of loading object code (binary machine code) into memoryDecide where to start loadingRead first binary instruction, and store it in memory starting with the first placeAdd up to get the next spotRead in the second binary instruction, and store it in memory, etcWhen done, load the program counter with the starting address. And erase itself from memory.BUT: Programs ran one at a time.Later: How about stacking all jobs together?separator card, indicates where one job stops and the next beganSo a program was created to do job management and to load the next job each time it read the special indicator cards.Beginning of the operating systemEXAMPLES: Mac OS, MS Windows, MS DOS, UNIX, Linux
4 BIOS BIOS (Basic Input Output System) Small unchangeable part of the operating system in the ROM.ROM: Read Only Memoryretains instructions even without electricity – non-volatileRAM: Random Access Memoryerased when power is off –volatileStart button position of BIOS memory, begin executing.BIOS:BIOS loads the rest of operating system into RAM and turns control of the computer over to it.We say it Boots the SystemBios is one of the pieces of the operating systemBIOS is AlsoAlso collection of programs that have the capability of communicating with peripheral devices.Keyboards, Disk drives, printers, display/monitors, and other devices.What is RAM = volatile - Read and Write memory, Random Access Memory. Volatile. No electric, no dataWhat is ROM – not volatile. Read only memory. Permanently burned in. No electric, still have the instructions available.
5 Booting the Computer Load the OS Cold boot: Warm boot: Starting up the computer by turning the power on.Operating system in ROM looks for and loads the remaining operating system into RAM.Warm boot:Reloads the operating system into RAM without disrupting the power to the disk drives or power supply.
6 Some Tasks of OS Tasks of the OS Loads programs Does Job control (management)BIOSDevice Drivers:special software that enables the computer to communicate with peripheralYou can update the Operating System by adding a new device driver (for a new printer)TasksDevice Drivers: special software that enables the computer to communicate with peripheral devices Helps you communicate with computer’s hardwareActs as an assistant that moves jobs in and out of memoryHelps in using keyboard, mouse, printing to printerLoading into RAM and starting up programsChange screen colorsUse modemsManages filesMultiprogramming: Allows more than one program at a time to be activeAllows printing while still doing word processingI/O is slow and operating system wants to keep CPU busyFormats disksOS is a traffic cop===================Partitioning - Dividing into separate parts. For example the hard drive can act as if it were 2 hard drives. To the user and to the programs, only the hard drive may look as if it goes from address:00,000,000 – 50,000, And to another program it may look as if the hard drive goes from50,000,001 – 99,999,999memory can also be partitioned and in each partition, a separate program can be running___________________| || | | | || w| e | super || o | x | mario | Need to keep CPU busy| r | c | | || d | e | | || | l | | |
7 User InterfaceUser interface: The part of the operating system that the user sees and communicates with. Two waysGUI (Graphical User Interface) - Icons (graphical representation of command choices) are selected using an input device, usually a mouse.Command line - Commands are typed in using the keyboard.Example: >copy c:paper.txt a:*.*GUI Commands to start a process is given by clicking the mouse’s buttonDrag and Drop: dragging one icon over the top of another and releasing – used to copy files or move themCommand-line interface VS. GUI interface.Command-line is one in which communications are given to the computer by typing commands on the keyboard. Used in MS-DOS -- not user friendly and prone to mistakes
8 Files and File Management File: the name given to any program or chunk of data that is stored on floppy, hard disk. CD ROM, or other storage.Extensions: A 3-letter extension is added to the file name separated by a period.Helps the operating system identify the type of file.OS then knows what program to load to open the file when you double click on the fileExample: index.htm identifies a document called index that is made up of HTML code.Extensions – the ending of the file’s name after a period. It identifies what type of data and what program created itdoc – MS Wordxls – MS Exceljpg, jpeg – Joint Photographers Expert Groupgif – Graphics Interchange Formatwav – audio standard for Windowsmov – quick time movie.
9 Files and File Management File System:Hierarchical File system organizes files in a treelike structure or hierarchy. Organizes files into groupings foldersHierarchical File Structure is a tree like structureFlat file structure – filing system that organizes files in one list (alpha, date) like a phone bookHierarchical – organizes file in a tree like structure. To find a file start at the root and go group by group until found.Folder – grouping of files under a single name - group like items together
10 Input & Output of Information - Device Control Installing a new device:A physical connection must be made to the peripheral.The proper software drivers must be added to the operating systemDevice Driver: A program that will allow communication between the operating system and another part of the computer, usually a peripheral device like a printer or scanner. It is an addition to the operating system.
11 Memory Concerns: Cache and Virtual Memory If the primary memory were as large as ever needed and as fast, the following ideas would not be necessary.Cache memory: Used when the speed of memory access is too slow - can’t keep up with the CPU’s needs.Very fast memory used by the operating system to house the data and instructions that are currently being used.1.Cache – used as a staging area.2. OS anticipates the next instructions and loads it into cache3. Cache memory is very fast and very expensive that is why all of memory is not cache.4. The interaction is between ordinary RAM and a special type of very fast and expensive RAM.
12 Memory Concerns: Cache and Virtual Memory Virtual Memory - addresses the problem of a program being too big to fit into the available RAM.The operating system divides the program into pieces.The pieces are stored on the hard disk as if it were additional RAM memory needed by the program.The pieces are retrieved into RAM as needed.Disadvantage: This slows the system down, because retrieval of information from the disk is time consuming.
13 MultitaskingAllows several application programs to be in RAM memory at one time.Allows the operating system to control more than one program simultaneously.Each program “stealing” CPU time.Example: Playing a game while a large document is being printed.In a multiprocessor system the OS also allocates jobs to keep each of the CPU’s busy(von Neumann) Bottleneck: Microcomputers having only one program counter can run only one program at a time.The CPU can only process a single instruction at any one time, no matter how many tasks there are.
14 Summary An Operating System is a collection of programs Basic tasks of OSBIOS and booting of OSGUI and command line interfacesCache and Virtual Memory