What is an OS?
Abstract views
To a college student: SW that permits access to the Internet.
To a programmer: SW that makes it possible to develop programs
on a computer system.
To a user of an application package: SW that makes it possible to
use the package.
To a technician in a computerized chemical plant: invisible
component of a computer system that controls the plant.
An abstract view focuses only on essential characteristics
Computer H/W
Computer Peripherals
What is an OS?
Goals of OS
Fundamental goals of an operating system
Command Interpreter
File System
On-line-Help
Application Integration
Efficient Use
OS ensures efficient use of memory, CPU, and
I/O devices
Programs
Resources
Scheduling
Protection
Single program
eg. .bat
Co-executing programs
Resource Allocation
Two popular strategies for resource allocation
are
Sharing Of resources
Program can share a resource in two ways
Sequential Sharing
Concurrent Sharing
CPU Sharing
Memory Sharing
Disk Sharing
Virtual Resources
CPU Sharing
Memory Sharing
Memory Sharing
Virtual Resources
Computer Virus
In computer security terminology, a virus is a
piece of program code that makes copies of
itself and spreads by attaching itself to a host,
often damaging the host in the process. The
host is another computer program, often a
computer operating system, which then infects
the applications that are transferred to other
computers.
Worms
A
Trojan Horse
Memory Hierarchy
I/O
Programmed I/O
Interrupt I/O
I/O
I/O Transfer
I/O Modes
Interrupt Classes
Interrupt Action
System Call
Definition : A system call is a request that a
program makes to the operation system.
A system call uses the special instruction called
software interrupt instruction.
<SI_instrn> <int_code>
Where values of <int_code> have standard
meanings in the OS.
2)
3)
4)
Punch cards
Early computers often used punch cards for input both of programs
and data. Punch cards were in common use until the mid-1970s.
Punch card
Above left: Punch card reader. Above right: Punch card writer.
punch tape
Multiprogramming System
Performance
TRT = Number of programs processed/Total time
taken to process them
In multiprogramming system i/o-bound programs
should have higher priority than cpu-bound
programs
User service
User service is characterized in terms of the time
taken to service a subrequest, i.e., the
response time (rt).
Emphasis on good response times, rather than
on efficient use or throughput.
Scheduling
Each user must also receive reasonable service.
Two provisions are made to ensure this.
1. Programs are not assigned priorities because
assignment of priorities may deny OS attention
to low priority programs. Instead, programs are
executed by turns.
2. A program is prevented from consuming
unreasonable amount of CPU time when
scheduled to execute. This provision ensures
that every request will receive OS attention
without unreasonable delays.
Nn No. Of users
Time of
completion
CPU time spent in
switching
Memory management
Swapping is a
technique of
temporarily
removing
inactive
programs
from the
memory of
the
computer.