1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs...

14
1 Operating Systems

Transcript of 1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs...

Page 1: 1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs that manages and controls applications and other.

1

Operating Systems

Page 2: 1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs that manages and controls applications and other.

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 Software

Page 3: 1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs that manages and controls applications and other.

3

History

Loader: first program to become part of the Operating System• The loader took care of loading object code (binary machine code) into

memory– Decide where to start loading– Read first binary instruction, and store it in memory starting with the

first place– Add up to get the next spot– Read in the second binary instruction, and store it in memory, etc– When 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 began • So 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 system EXAMPLES: Mac OS, MS Windows, MS DOS, UNIX, Linux

Page 4: 1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs that manages and controls applications and other.

4

BIOS

BIOS (Basic Input Output System)• Small unchangeable part of the operating system in the ROM.

• ROM: Read Only Memory– retains instructions even without electricity – non-volatile

• RAM: Random Access Memory – erased when power is off –volatile

• Start button position 00000 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 System

Page 5: 1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs that manages and controls applications and other.

5

Booting the Computer

Load the OS Cold 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.

Page 6: 1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs that manages and controls applications and other.

6

Some Tasks of OS

Tasks of the OS Loads programs Does Job control (management) BIOS Device Drivers:

• special software that enables the computer to communicate with peripheral

• You can update the Operating System by adding a new device driver (for a new printer)

Page 7: 1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs that manages and controls applications and other.

7

User Interface

User interface: The part of the operating system that the user sees and communicates with. Two ways• GUI (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:*.*

Page 8: 1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs that manages and controls applications and other.

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 file

– Example: index.htm identifies a document called index that is made up of HTML code.

Page 9: 1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs that manages and controls applications and other.

9

Files and File Management

File System:• Hierarchical File system organizes files in a treelike

structure or hierarchy. Organizes files into groupings folders

Page 10: 1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs that manages and controls applications and other.

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 system

– Device 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.

Page 11: 1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs that manages and controls applications and other.

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.

Page 12: 1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs that manages and controls applications and other.

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.

Page 13: 1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs that manages and controls applications and other.

13

Multitasking

Allows 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

Page 14: 1 Operating Systems. 2 What is an operating system? n The operating system: A collection of programs that manages and controls applications and other.

14

Summary

An Operating System is a collection of programs Basic tasks of OS BIOS and booting of OS GUI and command line interfaces Cache and Virtual Memory