SlideShare una empresa de Scribd logo
1 de 21
Descargar para leer sin conexión
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56
OPERATING SYSTEM
Mr. Anand H. D.
1
Operating System: Introduction
Department of Electronics & Communication Engineering
Dr. Ambedkar Institute of Technology
Bengaluru-56
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 2
Operating System: Introduction
Goals of an Operating System : Efficient Use User Convenience Noninterference
Operation of an Operating System: Program management Resource management Security and protection
Topics to be covered:
Goals of an Operating System
Operation of an Operating System
https://youtu.be/pTdSs8kQqSA
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 3
Operating System: Introduction
Goals of an Operating System : User Convenience Noninterference
Operation of an Operating System: Program management Resource management Security and protection
Goals of Operating System:
Efficient Use
 The fundamental goals of an operating system are:
• Efficient use
• User convenience
• Noninterference
 The goals of efficient use and user convenience sometimes conflict.
For example, emphasis on quick service would lead to inefficient use of resources,
the designer has to make a trade-off to obtain the combination of efficient use and user
convenience that best suits the environment-effective utilization of the computer system.
Interference with a user’s activities:-
Operating Systems:
illegal use or modification of a user’s programs or data,
denial of resources and services to a user.
: Ensure efficient use of a computer’s resources.
: Provide convenient methods of using a computer system.
: Prevent interference in the activities of its users.
fast service required by command and control applications,
make efficient use of computer resources to provide low-cost
computing
provide different combinations of the two extremes
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 4
Operating System: Introduction
Goals of an Operating System : User Convenience Noninterference
Operation of an Operating System: Program management Resource management Security and protection
Goals of Operating System:
Efficient Use
An operating system must ensure efficient use of the fundamental computer system
resources of memory, CPU, and I/O devices such as disks and printers.
Poor efficiency can result if a program does not use a resource allocated to it, e.g., if
memory or I/O devices allocated to a program remain idle - leads to snowballing effect
In addition, the OS itself consumes some CPU and memory resources during its own
operation, and this consumption of resources constitutes an overhead that also reduces the
resources available to user programs.
Efficient use of resources can be obtained by monitoring use of resources and performing
corrective actions when necessary. However, monitoring use of resources increases the
overhead, which lowers efficiency of use.
In practice, operating systems that emphasize efficient use limit their overhead by either
restricting their focus to efficiency of a few important resources, like the CPU and the
memory, or by not monitoring the use of resources at all, and instead handling user
programs and resources in a manner that guarantees high efficiency
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 5
Operating System: Introduction
Goals of an Operating System : Noninterference
Operation of an Operating System: Program management Resource management Security and protection
Goals of Operating System:
Efficient Use User Convenience
User convenience has many facets, as shown in following Table:
Fulfillment of necessity
Good Service
User friendly interfaces
New programming model
Web-oriented features
Evolution
Ability to execute programs, use the file system
Speedy response to computational requests
Easy-to-use commands, graphical user interface (GUI)
Concurrent programming
Means to set up Web-enabled servers
Add new features, use new computer technologies
Facet Examples
Table: Facets of User Convenience
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 6
Operating System: Introduction
Goals of an Operating System : Noninterference
Operation of an Operating System: Program management Resource management Security and protection
Goals of Operating System:
Efficient Use User Convenience
In the early days of computing, user convenience was synonymous with bare necessity
Other facets of user convenience evolved with the use of computers in new fields. Early
operating systems had command-line interfaces, which required a user to type in a
command and specify values of its parameters- scientists or computer professionals
Simpler interfaces were needed to facilitate use of computers by new classes of users. Hence
graphical user interfaces (GUIs) were evolved. These interfaces used icons on
a screen to represent programs and files and interpreted mouse clicks on the icons and
associated menus as commands concerning them.
New models were proposed for developing cost-effective solutions to new classes of
problems. Some of these models could be supported by the compiler technology and required
little support from the OS; modular and object-oriented program design are two such models.
Other models like the concurrent programming model required specific support features in
the OS.
Advent of the Internet motivated setting up of Web-enabled servers, which required
networking support and an ability to scale up or scale down the performance of a server in
response to the amount of load directed at it.
Users and their organizations invest considerable time and effort in setting up their
applications through an operating system. This investment must be protected when new
application areas and new computer technologies develop,
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 7
Operating System: Introduction
Goals of an Operating System :
Operation of an Operating System: Program management Resource management Security and protection
Goals of Operating System:
Efficient Use User Convenience Noninterference
A computer user can face different kinds of interference in his computational activities.
Execution of his program can be disrupted by actions of other persons, or the OS services.
The OS prevents such interference by allocating resources for exclusive use of
programs and OS services, and preventing illegal accesses to resources.
Another form of interference is when a computer user may collaborate with some other users
in the development or use of a computer application, so he may wish to share some of his files
with them.
Attempts by any other person to access his files are illegal and constitute interference.
To prevent this form of interference, an OS has to know which files of a user can
be accessed by which persons. It is achieved through the act of authorization,
whereby a user specifies which collaborators can access what files. The OS uses this
information to prevent illegal accesses to files.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 8
Operating System: Introduction
Goals of an Operating System :
Operation of an Operating System: Resource management Security and protection
Goals of Operating System:
operations of Operating System:
Efficient Use User Convenience Noninterference
Program management
The primary concerns of an OS during its operation are execution of programs,
use of resources, and prevention of interference with programs and resources.
Accordingly, its three principal functions are:
• Program management: The OS initiates programs, arranges their execution on the CPU,
and terminates them when they complete their execution.
Since many programs exist in the system at any time, the OS performs a function called
scheduling to select a program for execution
• Resource management: The OS allocates resources like memory and I/O devices when a
program needs them.
When the program terminates, it de-allocates these resources and allocates them to other
programs that need them.
• Security and protection: The OS implements noninterference in users’ activities through
joint actions of the security and protection functions.
As an example, consider how the OS prevents illegal accesses to a file.
The security function prevents nonusers from utilizing the services and resources in the
computer system, hence none of them can access the file.
The protection function prevents users other than the file owner or users authorized by
him, from accessing the file.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 9
Operating System: Introduction
Goals of an Operating System :
Operation of an Operating System: Resource management Security and protection
Goals of Operating System:
operations of Operating System:
Efficient Use User Convenience Noninterference
Program management
Table describes the tasks commonly performed by an operating system.
Construct a list of resource
Maintain information for security
Verify identity of a user
Initiate execution of programs
Maintain authorization information
Perform resource allocation
During booting
While registering new users
At user commands
When a user specifies which collaborators can access what
programs or data
When requested by users or programs
Task When performed
Table: Common Tasks Performed by Operating Systems
At login time
Maintain current status of resources
Maintain current status of programs
and perform scheduling
During resource allocation/de-allocation
Continually during OS operation
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 10
Operating System: Introduction
Goals of an Operating System :
Operation of an Operating System: Resource management Security and protection
Goals of Operating System:
operations of Operating System:
Efficient Use User Convenience Noninterference
Program management
When a computer system is switched on, it automatically loads a program stored on a
reserved part of an I/O device, typically a disk, and starts executing the program. This
program follows a software technique known as bootstrapping to load the software called
the boot procedure in memory
The boot procedure makes a list of all hardware resources in the system, and hands over
control of the computer system to the OS.
A system administrator specifies which persons are registered as users of the system. The
OS permits only these persons to log in to use its resources and services.
A user authorizes his collaborators to access some programs and data. The OS notes this
information and uses it to implement protection.
The OS also performs a set of functions to implement its notion of effective utilization.
These functions include scheduling of programs and keeping track of resource status
and resource usage information.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 11
Operating System: Introduction
Goals of an Operating System :
Operation of an Operating System: Resource management Security and protection
Goals of Operating System:
operations of Operating System:
Efficient Use User Convenience Noninterference
Program management
Modern CPUs have the capability to execute program instructions at a very high rate, so it is
possible for an OS to interleave execution of several programs on a CPU and yet provide good
user service.
The key function in achieving interleaved execution of programs is scheduling, which decides
which program should be given the CPU at any time.
Figure shows an abstract view of scheduling.
Figure: A schematic of scheduling.
Scheduler CPU
Completed
Program
New
Program
…..
Programs in ready Queue
waiting for CPU
Scheduled
Program
P1P2Pn
Preempted Program
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 12
Operating System: Introduction
Goals of an Operating System :
Operation of an Operating System: Resource management Security and protection
Goals of Operating System:
operations of Operating System:
Efficient Use User Convenience Noninterference
Program management
The scheduler, which is an OS routine that performs scheduling, maintains a list of programs waiting
to execute on the CPU, and selects one program for execution.
In operating systems that provide fair service to all programs, the scheduler also specifies how long
the program can be allowed to use the CPU.
The OS takes away the CPU from a program after it has executed for the specified period of time, and
gives it to another program. This action is called preemption. A program that loses the CPU because of
preemption is put back into the list of programs waiting to execute on the CPU.
The scheduling policy employed by an OS can influence both efficient use of the CPU and user service.
If a program is preempted after it has executed for only a short period of time, the overhead of
scheduling actions would be high because of frequent preemption. However, each program would
suffer only a short delay before it gets an opportunity to use the CPU, which would result in good user
service.
If preemption is performed after a program has executed for a longer period of time, scheduling
overhead would be lesser but programs would suffer longer delays, so user service would be poorer
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 13
Operating System: Introduction
Goals of an Operating System :
Operation of an Operating System: Security and protection
Goals of Operating System:
operations of Operating System:
Efficient Use User Convenience Noninterference
Program management Resource management
Resource allocations and de-allocations can be performed by using a resource table. Each entry in the table
contains the name and address of a resource unit and its present status, indicating whether it is free or allocated
to some program.
Table below is one such table for management of I/O devices. It is constructed by the boot procedure by sensing
the presence of I/O devices in the system, and updated by the operating system to reflect the allocations and
deallocations made by it.
printer1
printer2
printer3
disk1
disk2
cdw1
Resource
Name
AddressClass Allocation
status
Printer
Printer
Printer
Disk
Disk
CD writer
101
102
103
201
202
301
Allocated to P1
Free
Free
Allocated to P1
Allocated to P2
Free
Resource Table for I/O Devices
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 14
Operating System: Introduction
Goals of an Operating System :
Operation of an Operating System: Security and protection
Goals of Operating System:
operations of Operating System:
Efficient Use User Convenience Noninterference
Program management Resource management
Two resource allocation strategies are popular.
In the resource partitioning approach, the OS decides a priori what resources should be allocated to
each user program,
for example, it may decide that a program should be allocated 1 MB of memory, 1000 disk
blocks, and a monitor. It divides the resources in the system into many resource partitions, or
simply partitions; each partition includes 1 MB of memory, 1000 disk blocks, and a monitor.
It allocates one resource partition to each user program when its execution is to be initiated. To
facilitate resource allocation, the resource table contains entries for resource partitions rather than
for individual resources as in Table shown.
Resource partitioning is simple to implement, hence it incurs less overhead; however, it lacks
flexibility. Resources are wasted if a resource partition contains more resources than what a
program needs.
Also, the OS cannot execute a program if its requirements exceed the resources available in a
resource partition. This is true even if free resources exist in another partition.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 15
Operating System: Introduction
Goals of an Operating System :
Operation of an Operating System: Security and protection
Goals of Operating System:
operations of Operating System:
Efficient Use User Convenience Noninterference
Program management Resource management
In the pool-based approach to resource management, the OS allocates resources from a common pool of
resources. It consults the resource table when a program makes a request for a resource, and allocates the
resource if it is free. It incurs the overhead of allocating and de-allocating resources when requested.
However, it avoids both problems faced by the resource partitioning approach— an allocated resource is not
wasted, and a resource requirement can be met if a free resource exists.
A virtual resource is a fictitious resource—it is an illusion supported by an OS through use of a real resource.
An OS may use the same real resource to support several virtual resources. This way, it can give the impression
of having a larger number of resources than it actually does.
Each use of a virtual resource results in the use of an appropriate real resource. In that sense, a virtual resource
is an abstract view of a resource taken by a program. Use of virtual resources started with the use of virtual
devices.
To prevent mutual interference between programs, it was a good idea to allocate a device exclusively for use
by one program. However, a computer system did not possess many real devices, so virtual devices were used.
An OS would create a virtual device when a user needed an I/O device;
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 16
Operating System: Introduction
Goals of an Operating System :
Operation of an Operating System: Security and protection
Goals of Operating System:
operations of Operating System:
Efficient Use User Convenience Noninterference
Program management Resource management
 In Table it could be two virtual disks based on the real disk, which are allocated to programs P1
and P2, respectively.
Virtual devices are used in contemporary operating systems as well. A print server is a common
example of a virtual device.
When a program wishes to print a file, the print server simply copies the file into the print queue.
The program requesting the print goes on with its operation as if the printing had been performed.
The print server continuously examines the print queue and prints the files it finds in the queue.
Most operating systems provide a virtual resource called virtual memory, which is an illusion of a
memory that is larger in size than the real memory of a computer. Its use enables a programmer to
execute a program whose size may exceed the size of real memory.
Some operating systems create virtual machines (VMs) so that each machine can be allocated
to a user. The advantage of this approach is twofold.
Allocation of a virtual machine to each user eliminates mutual interference between users. It
also allows each user to select an OS of his choice to operate his virtual machine. In effect, this
arrangement permits users to use different operating systems on the same computer system
simultaneously
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 17
Operating System: Introduction
Goals of Operating System:
operations of Operating System:
Efficient Use User Convenience Noninterference
Program management Resource management Security and protection
An OS must ensure that no person can illegally use programs and resources in the system, or interfere with
them in any manner.
The security function counters threats of illegal use or interference that are posed by persons or programs
outside the control of an operating system, whereas the protection function counters similar threats posed by its
users.
Figure illustrates how security and protection threats arise in an OS.
Overview of security and
protection threats.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 18
Operating System: Introduction
Goals of Operating System:
operations of Operating System:
Efficient Use User Convenience Noninterference
Program management Resource management Security and protection
In a classical stand-alone environment, a computer system functions in complete isolation. In such
a system, the security and protection issues can be handled easily..
The identity of a person wishing to use a computer system is verified through a password when
the person logs in. This action, which is called authentication, ensures that no person other than a
registered user can use a computer system. Consequently, security threats do not arise in the
system if the authentication procedure is foolproof.
The OS prevents disruption of program executions and OS services with the help of hardware
features such as memory protection.
It overcomes interference with files by allowing a user to access a file only if he owns it or has
been authorized by the file’s owner to access it
When a computer system is connected to the Internet, and a user downloads a program from
the Internet, there is a danger that the downloaded program may interfere with other programs
or resources in the system.
This is a security threat because the interference is caused by some person outside the system,
called an intruder, who either wrote the downloaded program, or modified it, so that it would
interfere with other programs.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 19
Operating System: Introduction
Goals of Operating System:
operations of Operating System:
Efficient Use User Convenience Noninterference
Program management Resource management Security and protection
Another class of security threats is posed by programs called worms, which replicate by
themselves through holes in security setups of operating systems. Worms can replicate at
unimaginably high rates and cause widespread havoc. The Code Red worm of 2001 spread to a
quarter of a million computer systems in 9 hours.
Such security threats are posed either through a Trojan horse, which is a program that has a
known legitimate function and a well-disguised malicious function, or a virus, which is a piece of
code with a malicious function that attaches itself to other programs in the system and spreads to
other systems when such programs are copied.
Operating systems address security threats through a variety of means—
Users are expected to contribute to security by using passwords that are impossible to guess
and by exercising caution while downloading programs from the Internet
by using Internet firewalls to filter out unwanted Internet traffic through a computer system.
by using sophisticated authentication techniques,
by plugging security holes when they are discovered,
by ensuring that programs cannot be modified while they are copied over the Internet,
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 20
Operating System: Introduction
Goals of an Operating System :
Operation of an Operating System: Program management Resource management Security and protection
Goals of Operating System:
operations of Operating System:
Reference
1. D.M.Dhamdhare, “Operating Systems”,
Second Edition, TMH, 2008
NoninterferenceEfficient Use User Convenience
21
Prof. Anand H. D.
M. Tech. (PhD.)
Assistant Professor,
Department of Electronics & Communication Engineering
Dr. Ambedkar Institute of Technology, Bengaluru-56
Email: anandhdece@dr-ait.org
Phone: 9844518832

Más contenido relacionado

La actualidad más candente

Characteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded SystemCharacteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded Systemanand hd
 
PI-Tool To Improve Performance of Application In Multi-core Architecture
PI-Tool To Improve Performance of Application In Multi-core ArchitecturePI-Tool To Improve Performance of Application In Multi-core Architecture
PI-Tool To Improve Performance of Application In Multi-core ArchitectureCSCJournals
 
Operating system concepts ninth edition (2012), chapter 2 solution e1
Operating system concepts ninth edition (2012), chapter 2 solution e1Operating system concepts ninth edition (2012), chapter 2 solution e1
Operating system concepts ninth edition (2012), chapter 2 solution e1Navid Daneshvaran
 
Os files 2
Os files 2Os files 2
Os files 2Amit Pal
 
Computational models
Computational modelsComputational models
Computational modelsanand hd
 
Software rejuvenation
Software rejuvenationSoftware rejuvenation
Software rejuvenationRVCE
 
A Runtime Evaluation Methodology and Framework for Autonomic Systems
A Runtime Evaluation Methodology and Framework for Autonomic SystemsA Runtime Evaluation Methodology and Framework for Autonomic Systems
A Runtime Evaluation Methodology and Framework for Autonomic SystemsIDES Editor
 
CSI-503 - 6. Memory Management
CSI-503 - 6. Memory Management CSI-503 - 6. Memory Management
CSI-503 - 6. Memory Management ghayour abbas
 
VIEW OF MEMORY ALLOCATION AND MANAGEMENT IN COMPUTER SYSTEMS
VIEW OF MEMORY ALLOCATION AND MANAGEMENT IN COMPUTER SYSTEMSVIEW OF MEMORY ALLOCATION AND MANAGEMENT IN COMPUTER SYSTEMS
VIEW OF MEMORY ALLOCATION AND MANAGEMENT IN COMPUTER SYSTEMScseij
 

La actualidad más candente (15)

Characteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded SystemCharacteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded System
 
Memory
MemoryMemory
Memory
 
PI-Tool To Improve Performance of Application In Multi-core Architecture
PI-Tool To Improve Performance of Application In Multi-core ArchitecturePI-Tool To Improve Performance of Application In Multi-core Architecture
PI-Tool To Improve Performance of Application In Multi-core Architecture
 
Operating system concepts ninth edition (2012), chapter 2 solution e1
Operating system concepts ninth edition (2012), chapter 2 solution e1Operating system concepts ninth edition (2012), chapter 2 solution e1
Operating system concepts ninth edition (2012), chapter 2 solution e1
 
Firo
FiroFiro
Firo
 
Os files 2
Os files 2Os files 2
Os files 2
 
Computational models
Computational modelsComputational models
Computational models
 
Software rejuvenation
Software rejuvenationSoftware rejuvenation
Software rejuvenation
 
A Runtime Evaluation Methodology and Framework for Autonomic Systems
A Runtime Evaluation Methodology and Framework for Autonomic SystemsA Runtime Evaluation Methodology and Framework for Autonomic Systems
A Runtime Evaluation Methodology and Framework for Autonomic Systems
 
Os Question Bank
Os Question BankOs Question Bank
Os Question Bank
 
CSI-503 - 6. Memory Management
CSI-503 - 6. Memory Management CSI-503 - 6. Memory Management
CSI-503 - 6. Memory Management
 
VIEW OF MEMORY ALLOCATION AND MANAGEMENT IN COMPUTER SYSTEMS
VIEW OF MEMORY ALLOCATION AND MANAGEMENT IN COMPUTER SYSTEMSVIEW OF MEMORY ALLOCATION AND MANAGEMENT IN COMPUTER SYSTEMS
VIEW OF MEMORY ALLOCATION AND MANAGEMENT IN COMPUTER SYSTEMS
 
50120140501006 2
50120140501006 250120140501006 2
50120140501006 2
 
Understanding Basics of OS
Understanding Basics of OSUnderstanding Basics of OS
Understanding Basics of OS
 
20120140506012
2012014050601220120140506012
20120140506012
 

Similar a OS introduction

Similar a OS introduction (20)

ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
OS Chapter1
OS Chapter1OS Chapter1
OS Chapter1
 
SISTEMAS OPERATIVOS.pptx
SISTEMAS OPERATIVOS.pptxSISTEMAS OPERATIVOS.pptx
SISTEMAS OPERATIVOS.pptx
 
A Survey On Operating System Challenges And Security Issues Associate To It
A Survey On Operating System Challenges And Security Issues Associate To ItA Survey On Operating System Challenges And Security Issues Associate To It
A Survey On Operating System Challenges And Security Issues Associate To It
 
Lecture1423726024
Lecture1423726024Lecture1423726024
Lecture1423726024
 
Operating system
Operating systemOperating system
Operating system
 
Operating System Lecture Notes
Operating System Lecture NotesOperating System Lecture Notes
Operating System Lecture Notes
 
Operasting system service
Operasting system serviceOperasting system service
Operasting system service
 
operating system notes by madhavi.pdf
operating system notes by madhavi.pdfoperating system notes by madhavi.pdf
operating system notes by madhavi.pdf
 
OPERATING SYSTEM
OPERATING SYSTEMOPERATING SYSTEM
OPERATING SYSTEM
 
Ijetr021224
Ijetr021224Ijetr021224
Ijetr021224
 
Ijetr021224
Ijetr021224Ijetr021224
Ijetr021224
 
Operating systems introduction
Operating systems   introductionOperating systems   introduction
Operating systems introduction
 
Operating System a Case Study
Operating System a Case StudyOperating System a Case Study
Operating System a Case Study
 
RTOS for Embedded System Design
RTOS for Embedded System DesignRTOS for Embedded System Design
RTOS for Embedded System Design
 
“Elemental elements”
“Elemental elements”“Elemental elements”
“Elemental elements”
 
Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]
 
Ch2_OS_Lecture 3.pptx
Ch2_OS_Lecture 3.pptxCh2_OS_Lecture 3.pptx
Ch2_OS_Lecture 3.pptx
 
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.pptx
 
Operating System
Operating SystemOperating System
Operating System
 

Más de anand hd

RMV sensors
RMV sensorsRMV sensors
RMV sensorsanand hd
 
RMV robot programming
RMV robot programmingRMV robot programming
RMV robot programminganand hd
 
Robot applications
Robot applicationsRobot applications
Robot applicationsanand hd
 
RMV Mechanics
RMV MechanicsRMV Mechanics
RMV Mechanicsanand hd
 
Robot Machine Vision
Robot Machine VisionRobot Machine Vision
Robot Machine Visionanand hd
 
RMV Artificial Intelligence
RMV Artificial IntelligenceRMV Artificial Intelligence
RMV Artificial Intelligenceanand hd
 
Modules and ports in Verilog HDL
Modules and ports in Verilog HDLModules and ports in Verilog HDL
Modules and ports in Verilog HDLanand hd
 
Basic concepts in Verilog HDL
Basic concepts in Verilog HDLBasic concepts in Verilog HDL
Basic concepts in Verilog HDLanand hd
 
Overview of digital design with Verilog HDL
Overview of digital design with Verilog HDLOverview of digital design with Verilog HDL
Overview of digital design with Verilog HDLanand hd
 
Robotics Endeffectors
Robotics EndeffectorsRobotics Endeffectors
Robotics Endeffectorsanand hd
 
Fundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision SystemFundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision Systemanand hd
 
Robotics and Automation Introduction
Robotics and Automation IntroductionRobotics and Automation Introduction
Robotics and Automation Introductionanand hd
 
Programmable Logic Devices
Programmable Logic DevicesProgrammable Logic Devices
Programmable Logic Devicesanand hd
 
Logic synthesis using Verilog HDL
Logic synthesis using Verilog HDLLogic synthesis using Verilog HDL
Logic synthesis using Verilog HDLanand hd
 
Case Study of Embedded Systems
Case Study of Embedded SystemsCase Study of Embedded Systems
Case Study of Embedded Systemsanand hd
 
Modeling examples
Modeling examplesModeling examples
Modeling examplesanand hd
 
Verilog Tasks & Functions
Verilog Tasks & FunctionsVerilog Tasks & Functions
Verilog Tasks & Functionsanand hd
 
Concepts of Behavioral modelling in Verilog HDL
Concepts of Behavioral modelling in Verilog HDLConcepts of Behavioral modelling in Verilog HDL
Concepts of Behavioral modelling in Verilog HDLanand hd
 
ARM 32-bit Microcontroller Cortex-M3 introduction
ARM 32-bit Microcontroller Cortex-M3 introductionARM 32-bit Microcontroller Cortex-M3 introduction
ARM 32-bit Microcontroller Cortex-M3 introductionanand hd
 

Más de anand hd (19)

RMV sensors
RMV sensorsRMV sensors
RMV sensors
 
RMV robot programming
RMV robot programmingRMV robot programming
RMV robot programming
 
Robot applications
Robot applicationsRobot applications
Robot applications
 
RMV Mechanics
RMV MechanicsRMV Mechanics
RMV Mechanics
 
Robot Machine Vision
Robot Machine VisionRobot Machine Vision
Robot Machine Vision
 
RMV Artificial Intelligence
RMV Artificial IntelligenceRMV Artificial Intelligence
RMV Artificial Intelligence
 
Modules and ports in Verilog HDL
Modules and ports in Verilog HDLModules and ports in Verilog HDL
Modules and ports in Verilog HDL
 
Basic concepts in Verilog HDL
Basic concepts in Verilog HDLBasic concepts in Verilog HDL
Basic concepts in Verilog HDL
 
Overview of digital design with Verilog HDL
Overview of digital design with Verilog HDLOverview of digital design with Verilog HDL
Overview of digital design with Verilog HDL
 
Robotics Endeffectors
Robotics EndeffectorsRobotics Endeffectors
Robotics Endeffectors
 
Fundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision SystemFundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision System
 
Robotics and Automation Introduction
Robotics and Automation IntroductionRobotics and Automation Introduction
Robotics and Automation Introduction
 
Programmable Logic Devices
Programmable Logic DevicesProgrammable Logic Devices
Programmable Logic Devices
 
Logic synthesis using Verilog HDL
Logic synthesis using Verilog HDLLogic synthesis using Verilog HDL
Logic synthesis using Verilog HDL
 
Case Study of Embedded Systems
Case Study of Embedded SystemsCase Study of Embedded Systems
Case Study of Embedded Systems
 
Modeling examples
Modeling examplesModeling examples
Modeling examples
 
Verilog Tasks & Functions
Verilog Tasks & FunctionsVerilog Tasks & Functions
Verilog Tasks & Functions
 
Concepts of Behavioral modelling in Verilog HDL
Concepts of Behavioral modelling in Verilog HDLConcepts of Behavioral modelling in Verilog HDL
Concepts of Behavioral modelling in Verilog HDL
 
ARM 32-bit Microcontroller Cortex-M3 introduction
ARM 32-bit Microcontroller Cortex-M3 introductionARM 32-bit Microcontroller Cortex-M3 introduction
ARM 32-bit Microcontroller Cortex-M3 introduction
 

Último

complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
Piping Basic stress analysis by engineering
Piping Basic stress analysis by engineeringPiping Basic stress analysis by engineering
Piping Basic stress analysis by engineeringJuanCarlosMorales19600
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptMadan Karki
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
 

Último (20)

complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
Piping Basic stress analysis by engineering
Piping Basic stress analysis by engineeringPiping Basic stress analysis by engineering
Piping Basic stress analysis by engineering
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.ppt
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
 

OS introduction

  • 1. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 OPERATING SYSTEM Mr. Anand H. D. 1 Operating System: Introduction Department of Electronics & Communication Engineering Dr. Ambedkar Institute of Technology Bengaluru-56
  • 2. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 2 Operating System: Introduction Goals of an Operating System : Efficient Use User Convenience Noninterference Operation of an Operating System: Program management Resource management Security and protection Topics to be covered: Goals of an Operating System Operation of an Operating System https://youtu.be/pTdSs8kQqSA
  • 3. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 3 Operating System: Introduction Goals of an Operating System : User Convenience Noninterference Operation of an Operating System: Program management Resource management Security and protection Goals of Operating System: Efficient Use  The fundamental goals of an operating system are: • Efficient use • User convenience • Noninterference  The goals of efficient use and user convenience sometimes conflict. For example, emphasis on quick service would lead to inefficient use of resources, the designer has to make a trade-off to obtain the combination of efficient use and user convenience that best suits the environment-effective utilization of the computer system. Interference with a user’s activities:- Operating Systems: illegal use or modification of a user’s programs or data, denial of resources and services to a user. : Ensure efficient use of a computer’s resources. : Provide convenient methods of using a computer system. : Prevent interference in the activities of its users. fast service required by command and control applications, make efficient use of computer resources to provide low-cost computing provide different combinations of the two extremes
  • 4. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 4 Operating System: Introduction Goals of an Operating System : User Convenience Noninterference Operation of an Operating System: Program management Resource management Security and protection Goals of Operating System: Efficient Use An operating system must ensure efficient use of the fundamental computer system resources of memory, CPU, and I/O devices such as disks and printers. Poor efficiency can result if a program does not use a resource allocated to it, e.g., if memory or I/O devices allocated to a program remain idle - leads to snowballing effect In addition, the OS itself consumes some CPU and memory resources during its own operation, and this consumption of resources constitutes an overhead that also reduces the resources available to user programs. Efficient use of resources can be obtained by monitoring use of resources and performing corrective actions when necessary. However, monitoring use of resources increases the overhead, which lowers efficiency of use. In practice, operating systems that emphasize efficient use limit their overhead by either restricting their focus to efficiency of a few important resources, like the CPU and the memory, or by not monitoring the use of resources at all, and instead handling user programs and resources in a manner that guarantees high efficiency
  • 5. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 5 Operating System: Introduction Goals of an Operating System : Noninterference Operation of an Operating System: Program management Resource management Security and protection Goals of Operating System: Efficient Use User Convenience User convenience has many facets, as shown in following Table: Fulfillment of necessity Good Service User friendly interfaces New programming model Web-oriented features Evolution Ability to execute programs, use the file system Speedy response to computational requests Easy-to-use commands, graphical user interface (GUI) Concurrent programming Means to set up Web-enabled servers Add new features, use new computer technologies Facet Examples Table: Facets of User Convenience
  • 6. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 6 Operating System: Introduction Goals of an Operating System : Noninterference Operation of an Operating System: Program management Resource management Security and protection Goals of Operating System: Efficient Use User Convenience In the early days of computing, user convenience was synonymous with bare necessity Other facets of user convenience evolved with the use of computers in new fields. Early operating systems had command-line interfaces, which required a user to type in a command and specify values of its parameters- scientists or computer professionals Simpler interfaces were needed to facilitate use of computers by new classes of users. Hence graphical user interfaces (GUIs) were evolved. These interfaces used icons on a screen to represent programs and files and interpreted mouse clicks on the icons and associated menus as commands concerning them. New models were proposed for developing cost-effective solutions to new classes of problems. Some of these models could be supported by the compiler technology and required little support from the OS; modular and object-oriented program design are two such models. Other models like the concurrent programming model required specific support features in the OS. Advent of the Internet motivated setting up of Web-enabled servers, which required networking support and an ability to scale up or scale down the performance of a server in response to the amount of load directed at it. Users and their organizations invest considerable time and effort in setting up their applications through an operating system. This investment must be protected when new application areas and new computer technologies develop,
  • 7. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 7 Operating System: Introduction Goals of an Operating System : Operation of an Operating System: Program management Resource management Security and protection Goals of Operating System: Efficient Use User Convenience Noninterference A computer user can face different kinds of interference in his computational activities. Execution of his program can be disrupted by actions of other persons, or the OS services. The OS prevents such interference by allocating resources for exclusive use of programs and OS services, and preventing illegal accesses to resources. Another form of interference is when a computer user may collaborate with some other users in the development or use of a computer application, so he may wish to share some of his files with them. Attempts by any other person to access his files are illegal and constitute interference. To prevent this form of interference, an OS has to know which files of a user can be accessed by which persons. It is achieved through the act of authorization, whereby a user specifies which collaborators can access what files. The OS uses this information to prevent illegal accesses to files.
  • 8. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 8 Operating System: Introduction Goals of an Operating System : Operation of an Operating System: Resource management Security and protection Goals of Operating System: operations of Operating System: Efficient Use User Convenience Noninterference Program management The primary concerns of an OS during its operation are execution of programs, use of resources, and prevention of interference with programs and resources. Accordingly, its three principal functions are: • Program management: The OS initiates programs, arranges their execution on the CPU, and terminates them when they complete their execution. Since many programs exist in the system at any time, the OS performs a function called scheduling to select a program for execution • Resource management: The OS allocates resources like memory and I/O devices when a program needs them. When the program terminates, it de-allocates these resources and allocates them to other programs that need them. • Security and protection: The OS implements noninterference in users’ activities through joint actions of the security and protection functions. As an example, consider how the OS prevents illegal accesses to a file. The security function prevents nonusers from utilizing the services and resources in the computer system, hence none of them can access the file. The protection function prevents users other than the file owner or users authorized by him, from accessing the file.
  • 9. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 9 Operating System: Introduction Goals of an Operating System : Operation of an Operating System: Resource management Security and protection Goals of Operating System: operations of Operating System: Efficient Use User Convenience Noninterference Program management Table describes the tasks commonly performed by an operating system. Construct a list of resource Maintain information for security Verify identity of a user Initiate execution of programs Maintain authorization information Perform resource allocation During booting While registering new users At user commands When a user specifies which collaborators can access what programs or data When requested by users or programs Task When performed Table: Common Tasks Performed by Operating Systems At login time Maintain current status of resources Maintain current status of programs and perform scheduling During resource allocation/de-allocation Continually during OS operation
  • 10. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 10 Operating System: Introduction Goals of an Operating System : Operation of an Operating System: Resource management Security and protection Goals of Operating System: operations of Operating System: Efficient Use User Convenience Noninterference Program management When a computer system is switched on, it automatically loads a program stored on a reserved part of an I/O device, typically a disk, and starts executing the program. This program follows a software technique known as bootstrapping to load the software called the boot procedure in memory The boot procedure makes a list of all hardware resources in the system, and hands over control of the computer system to the OS. A system administrator specifies which persons are registered as users of the system. The OS permits only these persons to log in to use its resources and services. A user authorizes his collaborators to access some programs and data. The OS notes this information and uses it to implement protection. The OS also performs a set of functions to implement its notion of effective utilization. These functions include scheduling of programs and keeping track of resource status and resource usage information.
  • 11. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 11 Operating System: Introduction Goals of an Operating System : Operation of an Operating System: Resource management Security and protection Goals of Operating System: operations of Operating System: Efficient Use User Convenience Noninterference Program management Modern CPUs have the capability to execute program instructions at a very high rate, so it is possible for an OS to interleave execution of several programs on a CPU and yet provide good user service. The key function in achieving interleaved execution of programs is scheduling, which decides which program should be given the CPU at any time. Figure shows an abstract view of scheduling. Figure: A schematic of scheduling. Scheduler CPU Completed Program New Program ….. Programs in ready Queue waiting for CPU Scheduled Program P1P2Pn Preempted Program
  • 12. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 12 Operating System: Introduction Goals of an Operating System : Operation of an Operating System: Resource management Security and protection Goals of Operating System: operations of Operating System: Efficient Use User Convenience Noninterference Program management The scheduler, which is an OS routine that performs scheduling, maintains a list of programs waiting to execute on the CPU, and selects one program for execution. In operating systems that provide fair service to all programs, the scheduler also specifies how long the program can be allowed to use the CPU. The OS takes away the CPU from a program after it has executed for the specified period of time, and gives it to another program. This action is called preemption. A program that loses the CPU because of preemption is put back into the list of programs waiting to execute on the CPU. The scheduling policy employed by an OS can influence both efficient use of the CPU and user service. If a program is preempted after it has executed for only a short period of time, the overhead of scheduling actions would be high because of frequent preemption. However, each program would suffer only a short delay before it gets an opportunity to use the CPU, which would result in good user service. If preemption is performed after a program has executed for a longer period of time, scheduling overhead would be lesser but programs would suffer longer delays, so user service would be poorer
  • 13. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 13 Operating System: Introduction Goals of an Operating System : Operation of an Operating System: Security and protection Goals of Operating System: operations of Operating System: Efficient Use User Convenience Noninterference Program management Resource management Resource allocations and de-allocations can be performed by using a resource table. Each entry in the table contains the name and address of a resource unit and its present status, indicating whether it is free or allocated to some program. Table below is one such table for management of I/O devices. It is constructed by the boot procedure by sensing the presence of I/O devices in the system, and updated by the operating system to reflect the allocations and deallocations made by it. printer1 printer2 printer3 disk1 disk2 cdw1 Resource Name AddressClass Allocation status Printer Printer Printer Disk Disk CD writer 101 102 103 201 202 301 Allocated to P1 Free Free Allocated to P1 Allocated to P2 Free Resource Table for I/O Devices
  • 14. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 14 Operating System: Introduction Goals of an Operating System : Operation of an Operating System: Security and protection Goals of Operating System: operations of Operating System: Efficient Use User Convenience Noninterference Program management Resource management Two resource allocation strategies are popular. In the resource partitioning approach, the OS decides a priori what resources should be allocated to each user program, for example, it may decide that a program should be allocated 1 MB of memory, 1000 disk blocks, and a monitor. It divides the resources in the system into many resource partitions, or simply partitions; each partition includes 1 MB of memory, 1000 disk blocks, and a monitor. It allocates one resource partition to each user program when its execution is to be initiated. To facilitate resource allocation, the resource table contains entries for resource partitions rather than for individual resources as in Table shown. Resource partitioning is simple to implement, hence it incurs less overhead; however, it lacks flexibility. Resources are wasted if a resource partition contains more resources than what a program needs. Also, the OS cannot execute a program if its requirements exceed the resources available in a resource partition. This is true even if free resources exist in another partition.
  • 15. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 15 Operating System: Introduction Goals of an Operating System : Operation of an Operating System: Security and protection Goals of Operating System: operations of Operating System: Efficient Use User Convenience Noninterference Program management Resource management In the pool-based approach to resource management, the OS allocates resources from a common pool of resources. It consults the resource table when a program makes a request for a resource, and allocates the resource if it is free. It incurs the overhead of allocating and de-allocating resources when requested. However, it avoids both problems faced by the resource partitioning approach— an allocated resource is not wasted, and a resource requirement can be met if a free resource exists. A virtual resource is a fictitious resource—it is an illusion supported by an OS through use of a real resource. An OS may use the same real resource to support several virtual resources. This way, it can give the impression of having a larger number of resources than it actually does. Each use of a virtual resource results in the use of an appropriate real resource. In that sense, a virtual resource is an abstract view of a resource taken by a program. Use of virtual resources started with the use of virtual devices. To prevent mutual interference between programs, it was a good idea to allocate a device exclusively for use by one program. However, a computer system did not possess many real devices, so virtual devices were used. An OS would create a virtual device when a user needed an I/O device;
  • 16. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 16 Operating System: Introduction Goals of an Operating System : Operation of an Operating System: Security and protection Goals of Operating System: operations of Operating System: Efficient Use User Convenience Noninterference Program management Resource management  In Table it could be two virtual disks based on the real disk, which are allocated to programs P1 and P2, respectively. Virtual devices are used in contemporary operating systems as well. A print server is a common example of a virtual device. When a program wishes to print a file, the print server simply copies the file into the print queue. The program requesting the print goes on with its operation as if the printing had been performed. The print server continuously examines the print queue and prints the files it finds in the queue. Most operating systems provide a virtual resource called virtual memory, which is an illusion of a memory that is larger in size than the real memory of a computer. Its use enables a programmer to execute a program whose size may exceed the size of real memory. Some operating systems create virtual machines (VMs) so that each machine can be allocated to a user. The advantage of this approach is twofold. Allocation of a virtual machine to each user eliminates mutual interference between users. It also allows each user to select an OS of his choice to operate his virtual machine. In effect, this arrangement permits users to use different operating systems on the same computer system simultaneously
  • 17. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 17 Operating System: Introduction Goals of Operating System: operations of Operating System: Efficient Use User Convenience Noninterference Program management Resource management Security and protection An OS must ensure that no person can illegally use programs and resources in the system, or interfere with them in any manner. The security function counters threats of illegal use or interference that are posed by persons or programs outside the control of an operating system, whereas the protection function counters similar threats posed by its users. Figure illustrates how security and protection threats arise in an OS. Overview of security and protection threats.
  • 18. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 18 Operating System: Introduction Goals of Operating System: operations of Operating System: Efficient Use User Convenience Noninterference Program management Resource management Security and protection In a classical stand-alone environment, a computer system functions in complete isolation. In such a system, the security and protection issues can be handled easily.. The identity of a person wishing to use a computer system is verified through a password when the person logs in. This action, which is called authentication, ensures that no person other than a registered user can use a computer system. Consequently, security threats do not arise in the system if the authentication procedure is foolproof. The OS prevents disruption of program executions and OS services with the help of hardware features such as memory protection. It overcomes interference with files by allowing a user to access a file only if he owns it or has been authorized by the file’s owner to access it When a computer system is connected to the Internet, and a user downloads a program from the Internet, there is a danger that the downloaded program may interfere with other programs or resources in the system. This is a security threat because the interference is caused by some person outside the system, called an intruder, who either wrote the downloaded program, or modified it, so that it would interfere with other programs.
  • 19. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 19 Operating System: Introduction Goals of Operating System: operations of Operating System: Efficient Use User Convenience Noninterference Program management Resource management Security and protection Another class of security threats is posed by programs called worms, which replicate by themselves through holes in security setups of operating systems. Worms can replicate at unimaginably high rates and cause widespread havoc. The Code Red worm of 2001 spread to a quarter of a million computer systems in 9 hours. Such security threats are posed either through a Trojan horse, which is a program that has a known legitimate function and a well-disguised malicious function, or a virus, which is a piece of code with a malicious function that attaches itself to other programs in the system and spreads to other systems when such programs are copied. Operating systems address security threats through a variety of means— Users are expected to contribute to security by using passwords that are impossible to guess and by exercising caution while downloading programs from the Internet by using Internet firewalls to filter out unwanted Internet traffic through a computer system. by using sophisticated authentication techniques, by plugging security holes when they are discovered, by ensuring that programs cannot be modified while they are copied over the Internet,
  • 20. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 20 Operating System: Introduction Goals of an Operating System : Operation of an Operating System: Program management Resource management Security and protection Goals of Operating System: operations of Operating System: Reference 1. D.M.Dhamdhare, “Operating Systems”, Second Edition, TMH, 2008 NoninterferenceEfficient Use User Convenience
  • 21. 21 Prof. Anand H. D. M. Tech. (PhD.) Assistant Professor, Department of Electronics & Communication Engineering Dr. Ambedkar Institute of Technology, Bengaluru-56 Email: anandhdece@dr-ait.org Phone: 9844518832