0% found this document useful (0 votes)
16 views85 pages

Unit 1 OS

The document provides an overview of operating systems, detailing their functions, classifications, and the distinction between system and application software. It explains the role of an operating system as an interface between users and hardware, managing resources, processes, memory, and security. Additionally, it categorizes different types of operating systems, including single-user, multi-user, batch processing, and multitasking systems.

Uploaded by

Helping Hand
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views85 pages

Unit 1 OS

The document provides an overview of operating systems, detailing their functions, classifications, and the distinction between system and application software. It explains the role of an operating system as an interface between users and hardware, managing resources, processes, memory, and security. Additionally, it categorizes different types of operating systems, including single-user, multi-user, batch processing, and multitasking systems.

Uploaded by

Helping Hand
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 85

Operating System

Unit-1
• Computer Basics: Understanding Operating Systems

https://www.youtube.com/watch?v=fkGCLIQx1MI

What is an Operating System? Goals & Functions of Operating System

https://www.youtube.com/watch?v=ACsLvXuaKxw&t=34s

Case Study - Unix-Linux Os


Contents

• Application and System programs

• OS

• Functions of OS/OS Services

• Classifications of OS

• Systems of OS

• Bootstrap, Protection and Security


1. Application & System Program
• A computer is a collection of hardware and software.

• Hardware refers to the physical devices of a computer system. The input, storage,
processing and output devices are hardware.

• A software is a collection of programs and procedures whose objective is to enhance


the capabilities of the hardware machine.

• A computer cannot do anything on its own. It must he instructed to do a desired job.


1. Application & System program
• Hence it is necessary to specify a sequence of instructions that a computer must
perform to solve a problem.

• These instructions are specified in form of a computer program.

• Computer software is normally classified into two categories :

• Application software

• System software
System Programs
• System software is a set of one or more programs, designed to control the operation
of a computer system.

• These programs do not solve specific problems.

• These system software perform tasks such as controlling an application programs and
all of the operations required to move data into and out of a computer.
System Programs
• The program included in a system software is called system program and the person
who prepares system software is referred to as a system programmer.

• System software can run independently. It provides platform for running application
software's.

• Some examples of system software are compiler, assembler, debugger, driver, etc.
Application Programs

• Application software is a set of one or more programs designed to carry out


operations for a specific application.

• Application software is specific purpose software which is used by user for


performing specific task.

• The programs that create an application package are called application programs
and the person who prepares application programs is known as application
programmer.
Application Programs

• Application software are developed to serve a specific purpose only.

• Application software can’t run independently. They can’t run without the presence
of system software.

• Some examples of application software are word processor, web browser, media
player, etc.
S. No. System Software Application Software

System software is used for operating Application software is used by user to perform
1.
computer hardware. specific task.

System softwares are installed on the


Application softwares are installed according to
2. computer when operating system is
user’s requirements.
installed.

In general, the user does not interact with


In general, the user interacts with application
3. system software because it works in the
sofwares.
background.

System software can run independently. It Application software can’t run independently.
4. provides platform for running application They can’t run without the presence of system
software's. software.

Some examples of system software's are Some examples of application softwares are
5.
compiler, assembler, debugger, driver, etc. word processor, web browser, media player, etc.
2. OS
• An operating system is a program that acts as an interface between the user and
computer hardware.

• The purpose of OS is to provide an environment in which a user can execute program


in a convenient and efficient manner.

• OS is a first program that gets loaded into the memory through a process called
booting.

• OS is an integrated set of program that manages the various hardware resources and
overall operation of a computer system.
2. OS
• Its primary objective is to improve the performance and efficiency of a computer
system and make it user friendly. Like a manager of a company, OS is responsible for
smooth and efficient running of a computer system.

• An OS also act as a platform on which various application programs such as MS-


Word and Excel are executed.

• The most common OS are – UNIX, Windows 98, Window 2000, Window 7.
2.1 OS act as an Extended Machine
• This operating system manages all parts of the system, and act as an interface to the user
or virtual machine/ Extended Machine, that is easier to program and use.

• It means, that the operating system hides the details of the hardware resources from the
programmer and provides the programmer with a interface for using the computer
system is called abstraction.

• Thus, the abstraction feature of operating system hides the lower level details from users.

• The operating system acts as an intermediary between the hardware and its users, and
making it easier for the programmer and other users to access and use those resources.
2.2 OS as Resource Manager
• A computer system usually has many hardware and software resources such as
processor, memory, disks, printers, I/O devices etc. The operating system acts as a
manager of these resources.

• The operating system is responsible for controlling and allocating various hardware
and software resources to different users in an optimal and efficient manner.
2.2 OS as Resource Manager
• Operating system manages resources in two ways :

• Time Multiplexing. It defines the sharing of resources on the basis of fixed time
slices. For example, the operating system allocates the resources, such as CPU to
program A for a fixed time slice. After that time slice is over, the CPU is allocated
to another program B and so on.
• Space Multiplexing. It defines the concurrent sharing of resources among
different programs. For example, sharing of hard disk and main memory is space
multiplexing.
3. Functions of OS
• The primary function of OS is to provide an environment for the execution of user
program.

• The various functions of OS are-

• 1. Process Management
• 5. I/O Management
• 2. Main Memory Management
• 6. Protection and Security
• 3. Secondary Storage
• 7. Networking
Management
• 8. Command Interpretation
• 4. File Management
3.1. Process Management

• The process management refers to the assignment of processor to different tasks being
performed by the computer system.
3.1. Process Management
• The OS is responsible for the following activities in connection with process
management-
• 1. Creating and deleting both user and system processes.

• 2. Suspending and resuming processes.

• 3. Providing mechanism for process synchronization.

• 4. Providing mechanism for process communication.

• 5. Providing mechanism for deadlock handling.


3.2. Main Memory Management
• Memory is organized as a large array of words or bytes that stores the user programs
and instructions for execution.

• In multi-programming environment, several programs or processes are kept in main


memory so as to increase the CPU utilization and decrease the CPU response time.

• In such a situation, where several programs reside in the main memory at the same
time, memory management is important.
3.2. Main Memory Management

• The operating system is responsible for the following .activities in connection with
memory management:
• 1. Keeping track of which parts of memory are currently being used and by which process.

• 2. Deciding which processes are to be loaded into memory when memory space becomes
available.
• 3. Allocating and de-allocating memory spaces as needed.
3.3. Secondary Storage Management
• The main memory has a limited size and cannot store all the user programs at once.
Moreover, when the power is lost, the data it holds are also lost. So computer system
Provides secondary storage devices such as magnetic disks and tapes to back up main
memory.
3.3. Secondary Storage Management
• The secondary storage devices store system programs, such as compiler, editor and
assembler and user programs that are not used frequently.

• The operating System performs following functions in connection with disk management :
• 1. Free space management i.e., manages free space on disk.

• 2. Storage allocation i.e., allocates storage area for storing new programs.

• 3. Disk scheduling
3.4. File Management
• File is a storage unit and is a collection of information.

• Files are categorized on the basis of information stored in it such as data file, source
file and object file.

• Data files represents the information in numeric, alphabetic or alphanumeric mode.


Source files stores the code for programs and the object files are built on compiling
the programs.
3.4. File Management
• File are grouped together into directories for user's ease.

• The operating system performs following functions in connection with file


management :
• 1. Creating and deleting files.

• 2. Creating and deleting directories.

• 3. Providing operations for manipulating files and directories such as read, write,
execute, copy, append etc.
• 4. Backing up files on stable (non-volatile) storage media so that they can be restored
if original file is lost.
3.5. I/O Management
• I/O management refers to the coordination and assignment of the different I/O devices
to the various programs that are being executed.

• Thus, an OS is responsible for managing various I/O devices, such as keyboard,


mouse, printer and monitor.

• The operating system performs following function related to I/0 management:


• 1. Issuing commands to various I/O devices.

• 2. Capturing interrupt such as hardware failure.

• 3. Handling errors that appear in reading and writing process of devices.


3.6. Protection and Security
• Another important function of an operating system is to protect itself from the user
processes and to protect different users processes from one another in a system.

• In a multiprogramming environment, where several users processes reside in main


memory at the same time, they may interfere with OS or with each other.

• Security deals with protecting the various resources and information of a computer
system against destruction and unauthorized access.
3.7. Networking

• Networking is used for exchanging information among different computer that are
distributed across various locations.

• The various processors communicate using communication links, such as


telephone lines or buses. Bus is a collection of wire that runs parallel.

• Thus a distributed system enables us to share the various resources of the network.

• This result in computation speedup, increased functionality, increased data


availability and better reliability.
3.8. Command Interpretation
• The command interpreter is the basic interface between the computer and the user.

• Command interpreter provides a set of commands using which the user can give instruction to the
computer for getting some job done by it.

• There arc two different user interfaces supported by various operating systems:

• 1. Command line interface

• 2. Graphical user interface

• 1. Command Line Interface (CLI)- It is the textual user interface in which user gives instruction to
computer by typing the commands.

• 2. Graphical User Interface (GUI)- It provide the user a screen full of graphical icons or menus, and
allows the user to make a fast selection of icons or menus to give instruction to computer.
Types of OS
Classifications of OS
•The OS may be classified into different types depending upon the interaction between
user and program.

The various types of OS are:


• 1. Single user OS • 6. Parallel/Multiprocessing OS
• 2. Multi-user OS • 7. Timesharing OS
• 3. Batch processing OS • 8. Distributed OS
• 4. Multiprogramming OS • 9. Real time OS
• 5. Multitasking OS • 10. Multithreaded OS
1. Single User OS
• In single user OS, a single user can access the computer at a particular time.

• The computer, that are based on this OS, have only single processor and execute only
a single program at all the time.

• This system provide all the resources such as CPU,I/O devices to a single user at all
the time.

• Single user OS is of two types:

• Single user, single tasking OS

• Single user, multi-tasking OS


• The Single User, Single Tasking OS allows a single user to execute one program at a
particular time.

• The Single User, Multi-tasking OS allows a single user to execute multiple program
at a same time. For e.g a user can perform different task such as making calculations
in excel sheet, printing a word document and download a file from the internet at the
same time.

• The main disadvantage of this OS is that CPU sits idle for most of the time and is not
utilized to its maximum.
2. Multi-user OS
• In a multi-user OS, multiple number of users can access different resources of a
computer at a same time.

• The access is provided using a network that consists of various personal computer
attached to a mainframe computer system.

• The various personal computers can send and receive information to mainframe
computer system.

• Thus, the mainframe computer acts as the server and other personal computers act as
client for that server.
3. Batch Processing OS
• Batch processing is one of the oldest method of running the program.

• The computers in the past were very large in size and their I/O devices were very
different from those that are used today.

• The users did not interact directly with computer system.

• The users prepare their job and job was usually in form of punched cards.
3. Batch Processing OS
• The users submit their job to a computer system. when a batch of programs have been
collected, the operator loads this batch of programs into the computer at one time where
they are executed one after the other.

• Finally, the operator retrieves the output of these jobs and return them to the concerned
users.

• In this way many different jobs are processed, one after the other without any interaction
from the users during program execution.
• In such a batch processing system, the various jobs of the users are collected in a
queue. This process is known as spooling. Spooling is a short form of Simultaneous
Peripheral Operations On Line.

• The method of batch processing reduces the idle time of computer system because
transition from one job to another does not require operator intervention.

• Such an operating system also provides the provision to set the priorities for different
batch and the highest priority job is executed before other batches.
4. Multiprogramming System
• Multiprogramming operating system allows multiple users to execute multiple
programs using a single CPU concurrently i.e. at the same time.

• In multiprogramming several processes are kept in the main memory and CPU execute
all these processes concurrently. It means, the CPU immediately switches from one
process to next that are ready to get executed.

• Such a system is possible by having a mixture of CPU bound processes (i.e.the


processes that mostly perform numerical calculation with little I/O operations. Their
CPU utilization is high) and I/O bound processes (i.e. the processes that perform very
little computations and most of the time they perform I/O operations. Their CPU
utilization is very low.)
4. Multiprogramming System
• In such an operating system when one process start performing I/O operations, the
CPU is allocated to another user process in the main memory that is ready to use the
CPU. Thus CPU never remains idle and is always kept busy executing some
processes.

• Multiprogramming does not mean that CPU executes the instructions from several
programs at the same time. Rather, it means that there are number of programs
available to CPU and that a portion of one is executed, then a segment of other and so
on.
• Although two or more users programs reside in the main memory simultaneously, the
CPU is capable of executing only one instruction at a time. Hence, at any given time,
only one of the programs has control of CPU and is executing instructions.
Simultaneous execution of more than one program with single CPU is impossible

Memory Layout in Multiprogramming System


• In case of multiprogramming the various job residing in the main
memory, can be in one of the following three stages:
• Running : CPU is being used by the program

• Blocked : Performing I/O operation

• Ready : Waiting for CPU to be assigned to it.


For e.g. Program A is not utilizing CPU as it is busy writing output data on the
disk (I/O operation). The CPU is allocated to a program B, which is also present in
the main memory. Another program C, residing in the main memory, is waiting for
the CPU to become free.
Advantages & Disadvantages of Multiprogramming

• Advantages

• Increased throughput

• Lowered Response Time

• Ability to assign priorities to jobs

• Disadvantages

• Jobs may have different sizes, therefore memory management is needed.


5 Multitasking OS
• Technically, multitasking is same as multiprogramming.

• In a multitasking operating System, a single user can execute multiple programs at


the same time.

• We can also say, multitasking is the system's capability to work on more than one
job or process at the same time. It means that whenever a job needs to perform I/0
operations, the CPU can be used for executing some other job or process that is also
residing in the system and is ready to use the CPU.
5 Multitasking OS
• The term multiprogramming is used for multi-user systems i.e., systems that are
simultaneously used by many users such as mainframe and server class system and
the term multitasking is used for single user system i.e., systems that are used by
only one user at a time such as a personal computer or a notebook computer.

• Thus multitasking is the method of processing the multiple tasks concurrently in a


single user system.
• For example, a user is running separate program in four different windows at the same
time. The program in window 1 could be printing a document, the program in window
2 could be displaying an e-mail of user, a spreadsheet program in window 3 could be
preparing sales report and listening a song in window 4. In this manner, a user may
work on many tasks at the same time. Thus, progress of different tasks can be viewed
on different windows in a multitasking system.
Types of Multitasking
• There are two types of multitasking :

• 1. Cooperative Multitasking

• 2. Pre-emptive Multitasking

• 1. Cooperative multitasking- In cooperative multitasking, a program can acquire the


CPU for the required amount of time. A program can share CPU with any other
program that is executing simultaneously, if it does not currently require the CPU.
Microsoft windows 3.x and MultiFinder for. Macintosh computers are the examples
of cooperative multitasking.
Types of Multitasking
• 2. Preemptive multitasking– In preemptive multitasking the operating system
allocates particular time to a program. The CPU is preempted if a higher priority job
arrives in a system. In this type of multitasking, programs are forced to share the CPU
whether they want to use it or not. UNIX, Windows NT and later versions of Mac OS
are the examples of preemptive multitasking.
Difference between Multiprogramming
and Multitasking
S.no. Multiprogramming Multitasking
1 It is used for multi-user systems i.e., the systems that It is used for single user systems i.e. the systems that
are used by many users at the same time are used by only one user at a time.

2 It refers to the concurrent execution of multiple jobs It refers to the concurrent execution of multiple jobs
that may be of same user or different users. of a same user.
6. Multiprocessing OS
• Multiprocessor system is the system that contains two or more processors or CPUs and
has ability to simultaneously execute several programs. Hence the name 'multi-
processor'.

• In such a system, multiple processors share the clock, bus, memory and peripheral
devices.

• A multiprocessor system is also known as parallel system.


6. Multiprocessing OS
• In such a system, instructions from different and independent programs can be processed
at the same instant of time by different CPUs.

• In this system, the CPUs may simultaneously execute different instructions from the
same program.

• Multiprocessor systems are categorized into two different types :

• Symmetric multiprocessing (SMP)

• Asymmetric multiprocessing (ASMP)


• 1. Symmetric multiprocessing (SMP)

• Each processor run an identical copy of the OS

• Each processor can communicate with each other

• All processor are identical and perform same function

• Share equal amount of load.

• 2. Asymmetric multiprocessing (ASMP)

• Different processor do different things.

• Processor do not communicate with each other.

• They are not identical and perform different task.

• Do not share equal load.


7. Timesharing OS
• In timesharing system, the CPU time is divided among all the users on a scheduled
basis.

• Each user program is allocated a very- short period of CPU time one-by-one,
beginning from the first user program and proceeding the last one, and then again
beginning from the first one.

• This short period of time during which user gets the attention of the CPU is known as
a time slice/time slot /quantum. It is typically of the order of 10 to 100 milliseconds.
7. Timesharing OS

• Thus, in timesharing, when the CPU is allocated to a user program, the user uses
the CPU for the period of time slot.

• It releases the CPU under any of the following, three conditions-

• When the allotted time slice expires.

• When the program needs to perform I/O operation.

• When the execution of the program is over during the time slice
8. Distributed OS

• A distributed system is a collection of processors located in geographical different


physical location.

• In this system, the workload is distributed or divided between two or more


computers that are linked together by a communication network.

• The processors in distributed system vary in size and functions.


8. Distributed OS

• The purpose of distributed system is to provide an efficient and convenient


environment for sharing of resources.

• The design of distributed system is based on two models-

• 1. Client-Server Model

• 2. Peer-to-Peer Model
• 1.Client-Server Model- In client server model, client send a request to
the server and the server provide the response back to client .
• 2. Peer-to-Peer Model- In peer-to-Peer model, all the computers behave as client
and can communicate with each other for exchange of their resources.
9. Real time OS
• In a real time OS, a job is to be completed within the rigid time constraints otherwise
job loses its meaning.

• A real time system functions correctly only if it return the correct result within its
time constraints.

• A real time system is often used as a central device in applications like robotics, air-
traffic control, industrial control system, medical system.
9. Real time OS
• Real time system are categorized into-

• 1. Hard Real Time System- complete the critical task within the definite interval
of constraints . If the task is not completed within time constraints then hard real
time system fails.
• For e.g. Flight Controller system in which any miss in deadline leads to crash
or an unstable aircraft
• 2. Soft Real Time System- are not affected by the lapse of time interval and do not
cause any critical failure.
• For e.g.- traffic signal
10. Multi-Threaded OS

• Multithreading is a technique in which a process, executing an application is


divided into threads that can run concurrently.

• A thread represents a light weight process and is the smallest unit of CPU
utilization. It is like a ‘mini-process’.

• It cannot run on its own, it always run within a process.

• A process on the other hand is a collection of one or more threads.


The various thread states are-
• 1. Ready- A thread in the ready state is waiting to execute.

• 2. Standby-A thread that has been selected to run next on a particular processor is said to
be in standby state. The thread waits in this state until the processor is made available. If
the priority of standby thread is higher the the running thread may be preempted.

• 3. Running- The thread that is currently utilizing CPU is in running state. It keeps the
processor until
• It is preempted by a higher priority thread

• It gets blocked (I/O device)

• Its time slice expires


The various thread states are-
• 4.Waiting- A thread enter Waiting state when

• It is blocked on an event(I/O)

When waiting condition is satisfied, the thread moves back to ready state if all the
resources are available.

• 5. Transition- A thread enter this state after waiting if it is ready to run but sources
are not available. When resources are available , the thread goes to the ready state.

• 6. Terminated- A thread can be terminated by itself, by another thread or when its


parent process terminates.
SUBSYSTEMS OF OS
• In order to perform various task effectively and efficiently the OS is organized into
various subsystem.

• Each subsystem performs a specific task and manage various resources like CPU,
memory, I/O, processes and files.

• All these subsystem are organized into three different horizontal layers: bottom,
middle and top layer.

• In the bottom layer there are three subsystem, one for each type of hardware resource
: CPU manager, the memory manager and device manager. The software's in this
layer directly manages the hardware resources.
SUBSYSTEMS OF OS
• The middle-layer is the head and heart of the OS. It contains three subsystems :
process management, virtual memory management and file management. These
three subsystems are interdependent and usually interact with each other. The middle
layer also includes other subsystems such as bootstrap, shutdown, time management,
security, module management etc.

• The top layer contains external interfaces consisting of system call, interrupt and
exception handling routines. It also contains utilities that enable the users to use
different components of computer system. For example compilers, assemblers,
database management system etc.
1. Bottom Layer Subsystem
• This layer manages the hardware devices like CPU, main memory and I/O devices.

• A. CPU Management- The software component that is responsible for this subsystem is
called CPU manager.
• CPU manager is responsible for allocating the CPU to one of the various processes that
are waiting for their turn to get CPU.
• It decide which process will get the CPU and for how much duration .
1. Bottom Layer Subsystem
• B. Memory Management- This subsystem manage another important hardware resource
called main memory and usually shared by operating system and application programs.
• The memory manager keeps track of area of main memory where operating system
resides and where application programs reside.
• The memory manager also implements various protection techniques in order to protect
the allocated memory from unauthorized access.
1. Bottom Layer Subsystem
C. I/O Device Management- I/O devices attached to the computer system are used to enter
the data into the system and get the output.
• This subsystem contains a collection of device drivers. A device driver is a software
module that manages the communication and controls the specific I/O device. Device
driver converts the logical requests from the user into specific commands directed to the
device itself.
• This subsystem also implements device allocation policies. I/O device management
subsystem, keeps an account to determine which device is allocated to which process.
2. Middle Layer Subsystem
• This layer is the head and heart of an operating system. It handles processes, virtual memory management and
files management system.

• A. Process Management- It keeps track of all the resources allocated to various processes in a system. It
creates certain data structures such as PCB (Process Control Block) to store information about various
processes.
• It also looks after the various operations that can be performed on process such as process creation,
termination, suspend, resume block etc.
• This subsystem also looks after the inter process communication and process synchronization.
• Inter-process communication is a technique by which the various processes can communicate with each other
and is called cooperating processes.

• Process synchronization ensures a perfect coordination among the cooperating processes.


• B. Virtual Memory Management-The basic concept of virtual memory is to store
instruction and data of a program in the secondary memory and to load them in the
main memory when they are required.
• Because the Program can be larger than the actual main memory available.

• It means it is not necessary to load all of a process into main memory during its
execution. Only those portions which are actually being used at any instant need
to be present in memory. The rest of program is kept in secondary memory.
• Virtual memory enhances the CPU utilization and throughput by executing as
many programs as possible almost simultaneously.
• C. File Management System-An information is stored in a file. A file is a collection
of similar records. A file is treated as a single entity by users and applications.
• It enable users to give user defined name, to create, to modify and to delete files.

• It also ensure the security of files such that the file is not accessed by
unauthorized users.
3. Top Layer Subsystem
• This layer also includes utilities, command interpreter or shell and system libraries.

• A. Interrupt, System Call and Exception- An interrupt is a signal from an I/O device
or from a program that causes the OS to stop the execution.
3. Top Layer Subsystem
• System Calls –The purpose of system call is to request the operating system to
perform some activity.
• The execution of a system call requires the user process to save its current state and
pass the control of the CPU to the operating system to perform some function.
• After the task has been performed the operating system saves its state and give control
of the CPU back to the user process.
• Whenever an application performs some illegal action such as executing some
unrecognized or privileged instruction (e.g. dividing a number by zero or referring an
entity outside their own address space), it enters into inaccurate or abnormal state.
This illegal action is called an exception.
3. Top Layer Subsystem
• B. Utilities- Utilities are special system programs that are used for specific purpose.

• Utilities are standalone executable programs that come with operating system.

• The various utilities in computer are assemblers, compilers, database management


systems, logins, shells etc.
• C. Command Interpreter or Shell- It is that part of an operating system which
receives and executes operating system commands.
• Whenever a command prompt is displayed the command processor waits for
command. After the user enters a command, the command processor make sure
that command is valid and either execute it or issues an error message.
• For graphical user interface, command processor interprets mouse operation and
execute the appropriate command.
• D. System Libraries- It is a collection of information, resources and services that are
used to develop a software or an application.
• These may include Documentation, help-data message template or machine
language code, subroutines, classes that can be used in application programs at
link time, load time or run time.
BOOTSTRAP
• When computer is turned ON, almost all hardware devices including main memory
are in inconsistent states.

• The OS is not available in main memory at this point of time.

• The first task is to load the OS into main memory.

• Booting is a process used to load OS in main memory and loading of the OS is


done with the help of special program called BOOT /Bootstrap
Program/Bootstrap Loader.
BOOTSTRAP
• This bootstrap program is embedded in ROM i.e. is stored in one or two sector on
the disk . This portion of disk is called Boot Block.

• Thus bootstrap program, after loading the OS, transfers the execution control to
OS. The OS initializes hardware devices appropriately. This initialization is done
before users begin using the computer.

• Bootstrap programs varies from OS to OS and also depend on processor.


Protection and Security

• Protection refers to the mechanism for controlling the access of programs,


processes or users to the resources defined by computer system.

• The purpose was to limit each user’s program to its assigned area of memory so
that the program cannot interfere and harm with each other.

• Protection also ensure that only those processes that have gained proper
authorization from the OS can operate on memory segments, the CPU, files and
other resources.
• Security refers to method of protecting information stored in the system as well as physical
resources of the computer system from unauthorized access, destruction or alteration or
accidental introduction of inconsistency

• Authorized users are those, whose identity are known and are allowed to use system
resources whereas unauthorized users are those who are not allowed to use system
resources.
• Thus securing a system involves following measures:

• Preventing unauthorized access

• Protecting the system from damage or misuse-

• Theft of information

• Unauthorized modification of data

• The term security is often associated with protection. However, there is a difference
between them.

• Protection is defined as guarding the user information against other authorized users within
the system whereas security is defined as guarding the user information against
unauthorized users outside the system.

You might also like