Chapter Two Operating System
Chapter Two Operating System
Operating System
What is an operating system ??
Definition :
An Operating System is an interface between user and hardware of a computer system.
Goals of O.S :
• To make the computer system convenient to use.
• To use the computer hardware in an efficient manner.
Purpose of O.S :
The purpose of an operating system is to provide an environment in which a user may
execute programs.
An operating system allows your computer to manage software and perform essential
tasks. It is also a Graphical User Interface (GUI) that allows you to visually interact
with your computer’s functions in a logical, fun, and easy way.
Operating System
Collection of programs which control the
resources of a computer system
Written in low-level languages (i.e. machine-
dependent)
Interface between the users and the hardware
When the computer is on, OS will first load
into the main memory
Basic functions of the operating system
Device configuration
Controls peripheral devices connected to the computer
File management
Transfers files between main memory and secondary
Operating storage, manages file folders, allocates the secondary
System storage space, and provides file protection and recovery
Memory management
Allocates the use of random access memory (RAM) to
requesting processes
Interface platform
Allows the computer to run other applications
Operating System Functions
• Process management
• Interrupts
• Memory management
• Virtual file system
• Device drivers
• Networking
• Security
• Graphical user interfaces
Graphic User Interface (GUI)
Different Types of Operating System
Good Operating System
• Efficient
• Time spent to execute its programs should be
short
• Small in size
• Memory occupied should be as small as possible
• Reliable
Special Features of OS
• multi-tasking
• multi-programming
• parallel processing
• Buffering
Multi-tasking
• to handle 2 or more programs at the same time from a single user ‘s perception
– CPU can only perform one task at a time, however, it runs so fast that 2 or
more jobs seem to execute at the same time
Multi-programming
• 2 or more programs store in the main memory
at the same time
• when one job reeds to wait (e.g. I/O
operation), CPU switch to another job to
execute
• when the first job finishes waiting, CPU will
get back the first job to execute
What is a file, a folder, and a shortcut
• The basic difference between the two is that files
store data, while folders store files and other folders.
• A shortcut is a link that points to a program on the
computer. Shortcuts allow users to create links to
their programs in any folder, Start bar, Taskbar,
Desktop or other locations on their computer.
Windows 7 system requirements
Architecture 32-bit 64-bit
Processor 1 GHz 32-bit processor 1 GHz 64-bit processor
Memory (RAM) 1 GB of RAM 2 GB of RAM
Graphics Card DirectX 9 graphics processor with WDDM driver model 1.0 (For
Aero)
Memory (RAM) 1 GB 2 GB
Storage 20 GB
What is a Virus?
Computer virus is a software program written with malicious
intentions.
Computer virus is a harmful software program written
intentionally to enter a computer without the user's permission
or knowledge. It has the ability to replicate itself, thus continuing
to spread. Some viruses do little but replicate, while others can
cause severe harm or adversely affect the program and
performance of the system. A virus should never be assumed
harmless and left on a system.
Indications of virus
• Your computer work slower than it was.
• Your computer freezes frequently or doesn’t open properly
• Your computer restarts in every couple minutes.
• Your system doesn’t work properly and restarts itself
• Applications in your computer doesn’t work properly.
• You cannot reach to discs and drivers
• You cannot print
• You are seeing unusual errors
• You see messed up-shaped menus
Types of Computer Viruses
There are number of computer viruses that can impede the functioning
of your computer system.
The Spread of Computer Viruses
This type of virus affects the boot sector of a hard disk. This is a
crucial part of the disk, in which information of the disk itself is
stored along with a program that makes it possible to boot (start) the
computer from the disk. This type of virus is also called Master
Boot Sector Virus or Master Boot Record Virus.
It hides in the memory until DOS accesses the floppy disk, and
whichever boot data is accessed, the
virus infects it.
Examples: Polyboot.B, AntiEXE
Macro Virus
Macro viruses infect files that are created using certain applications
or programs that contain macros, like .doc, .xls, .pps, .mdb, etc. These
mini-programs make it possible to automate series of operations so
that they are performed as a single action, thereby saving the user
from having to carry them out one by one. These viruses
automatically infect the file that contains macros, and also infects the
templates and documents that the file contains. It is referred to as a
type of e-mail virus.
These hide in documents that are
shared via e-mail or networks.
Examples: Relax, Melissa.A, Bablas,
O97M/Y2K
Polymorphic Virus
There are so many anti-viruses which works against viruses but some
anti-viruses are trusted and are very famous.
Advantages of Anti-Virus