Intro To Operating System
Intro To Operating System
Intro To Operating System
Operating Systems
Hard Drives
IDE/ATA Drives
IDE - Integrated Drive Electronics (IDE) interface
ATA - AT Attachment (ATA) to reflect attachment
to IBM AT computers
Popular because they are cheap
4 devices maximum
• Primary Master, Primary Slave, Secondary Master,
Secondary Slave
Maximum size ~ 200GB
SCSI (Small Computer System
Interface) Drives
Advantages
It's fast -- up to 320 Mega Bytes per
second (MBps).
It's very reliable.
and EMC
Storage Area Networks (SAN)
Mouse
Serial Ports
Parallel Port
USB Ports
Free BSD UNIX
ftp://ftp.freebsd.org/pub/Free
BSD/releases/i386/ISO-
IMAGES/4.4
http://www.freebsd.org/doc/en_US.ISO
8859-1/books/handbook/index.html
RedHat Linux 7.3
ftp://ftp.redhat.com/pub/redhat/linu
x/7.3/en/iso/i386/
How a Computer Works
You turn the computer on.
The computer loads data from read-only
memory (ROM)
Computer performs a Power-On Self-Test
(POST) to make sure all the major
components are functioning properly.
The computer loads the basic input/output
system (BIOS) from ROM.
How a Computer Works (2)
The BIOS provides the most basic
information about storage devices, boot
sequence, security, Plug and Play (auto
device recognition) capability and a few
other items.
The computer loads the operating system
(OS) from the hard drive into the system's
RAM.
How a Computer Works (3)
Important! Only the critical parts of the
operating system are maintained in RAM. This
allows the CPU to have fast access to the
operating system, which enhances the
performance and functionality of the overall
system.
When an application is opened, it is loaded
into RAM.
To conserve RAM usage, many applications
load only the essential parts of the program
initially and then load other pieces as needed.
How a Computer Works (4)
After an application is loaded, any files
that are opened for use in that application
are loaded into RAM.
When you save a file and close the
application, the file is written to the
specified storage device, and then the file
and the application are purged from RAM.
Problem: Memory Leaks occur if the
memory occupied by the application is not
cleared completely.
OPERATING SYSTEMS
Discussion Questions
What is an Operating System?
What kinds of Operating Systems are
used currently?
Based on your experiences, what are
Single-user, multi-tasking
Multi-user, multi-tasking
Real-Time Operating System
Real-time operating systems are used to control
machinery, scientific instruments and industrial
systems.
An RTOS typically will be a "sealed box" when
delivered for use.
A very important part of an RTOS is managing
the resources of the computer so that a particular
operation executes in precisely the same amount
of time every time it occurs.
In a complex machine, having a part move more
quickly just because system resources are
available may be just as catastrophic as having it
not move at all because the system is busy.
Single-user, single task
this operating system is designed to manage the
computer so that one user can effectively do one
thing at a time.
E.g. The Palm OS for Palm handheld computers
is a good example of a modern single-user,
single-task operating system.
E.g. MS-DOS, PC-DOS
Single-user, multi-tasking
This is the type of operating system most people
use on their desktop and laptop computers today.
Windows 98, MacOS, Windows NT are all
examples of an operating system that will let a
single user have several programs in operation at
the same time.
For example, it's entirely possible for a Windows
user to be writing a note in a word processor
while downloading a file from the Internet while
printing the text of an e-mail message and
sharing their files and printers.
Multi-User, Multi-Tasking
Many different users can log onto one computer to
take advantage of the computer's resources
simultaneously.
The OS must make sure that the requirements of the
various users are balanced
Each of the programs they are using has sufficient
and separate resources so that a problem with one
user doesn't affect the entire community of users.
Unix, Linux, Windows XP, Windows NT Terminal
Server, and Windows 2000 Terminal Server (with or
without Citrix) and mainframe operating systems,
such as MVS, are examples of multi-user operating
systems.
Implications of an Operating Systems
Problem:
Operating System will be Hardware
dependent
Solution: (implemented by Microsoft in
Windows NT Architecture)
Not allow the major components of the
Operating System to talk directly to
hardware. Has to talk through the
Hardware Abstraction Layer (HAL).
Hardware Abstraction Layer in NT
Advantages
Only a small part of the code had to be
rewritten, i.e., the HAL.
Windows NT 4.0 was supported on Intel,
DEC Alpha, MIBS, and PowerPC.
Disadvantage
Many PC Games do not work on NT
because the games try to directly access
the Video Card and Sound Card.
Processor and Memory
Management
Discussion
A company has 50 Windows 98 desktop computers running
Office 97, 1 Exchange Server for Email, 1 IIS Server (Web
Server) and 2 NT Domain Controllers.They are thinking of
upgrading. You have been hired as a consultant to
determine whether it is more beneficial to move to
Windows 2003 based Servers and Windows XP desktops
with Office XP 2003 or move to Free Linux Servers and
Workstations and buy only StarOffice suite from Sun.
Determine all the information that you need to accumulate
Processor management.
Memory management.
management).
I/O device management.
Processor Management
Ensure that each process and application
receives enough of the processor's time to
function properly.
It uses Scheduling and Queuing techniques to
achieve this goal.
The basic unit of software that the operating
system deals with for scheduling the work done
by the processor is a process thread.
Processes
A process is an
executable program.
Executable program
may be an
Application program
or a service/daemon.
E.g. Winword is a
Application process
that runs when
Microsoft Word is
launched.
E.g. Spoolsv.exe,
snmp.exe are •All process have a process
services/daemons ID
Threads
A thread is a set of
commands within a
process to which the
OS grants processor
time.
A process must have
at least one thread.
A process having
more than one
thread is called a
multi-threaded
process (or
program/application)
Processes & Threads
Multithreading
A process having more than one thread is called
a multi-threaded process (or
program/application)
E.g Internet Explorer Web Browser
As you type the URL of a Website,
keyboard
Another process thread is searching your
Applications (like
Word, Excel) are
usually foreground
processes
Services (Spooler,
SNMP, Server,
WWW, FTP) are
background
processes
Which has priority
will depend on the
configuration
settings
Process Priority
Priority of a process
can be further
determined assigning it
higher or lower
priority.
Only processes running
under the Username
context can have their
priority changed
Non-volatile Storage
can withstand power failures and
system crashes
Cache
A cache is a very fast block of memory that speeds up the
performance of another device.
Frequently used data are stored in the cache.
The computer looks in the cache first to see if what it needs
is there.
Level 1 Cache (~32K) is located directly inside the CPU
itself and has the most direct effect on overall performance
(bus speed = processor speed).
Level 2 Cache (~256K-512K) is located on the motherboard
or processor module/board. It stores frequently used data
from the computer's main memory (RAM). (bus speed may
be 1/4 to 1/2 of processor speed)
Pentium Pro had Level 2 Cache on the processor - as fast
as Level 1 Cache)
Memory Management -
Introduction
Processes must be brought into RAM before it
can be executed.
RAM does not usually have adequate capacity
to hold all the processes
Therefore, it stores only the minimum
required processes in RAM
The rest in stored in Virtual Memory (VM)
The VM contents are stored in a Page File on
the hard drive
Virtual Memory
Virtual memory – separation of user logical
memory from physical memory.
Only part of the process needs to be in memory
for execution.
Logical address space can therefore be much
larger than physical address space.
Need to allow memory contents to be swapped in
and out.
Swapping
begins.
Monitoring the page faults/sec and
agent data
agent data
managed device
managed device
Network Management standards
SNMP: Simple Network Management
Protocol
Internet roots (SGMP)
started simple
currently: SNMP V3
request
trap msg
response