Download Operating Systems - Villanova Computer Science

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Security-focused operating system wikipedia , lookup

Library (computing) wikipedia , lookup

MTS system architecture wikipedia , lookup

Distributed operating system wikipedia , lookup

Copland (operating system) wikipedia , lookup

RSTS/E wikipedia , lookup

Burroughs MCP wikipedia , lookup

Acorn MOS wikipedia , lookup

Booting wikipedia , lookup

Unix security wikipedia , lookup

Spring (operating system) wikipedia , lookup

VS/9 wikipedia , lookup

Paging wikipedia , lookup

CP/M wikipedia , lookup

Transcript
Operating Systems
1
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
2
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
3
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
4
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.
5
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)
6
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:*.*
7
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.
8
Files and File Management

File System:
• Hierarchical File system organizes files in a treelike structure
or hierarchy. Organizes files into groupings folders
9
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.
10
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.
11
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.
12
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
13
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
14