SlideShare uma empresa Scribd logo
1 de 21
Introduction to Operating System
Concepts
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
Introduction to Operating System Concept:
 An operating system acts as an intermediary between the user of a
computer and computer hardware.
 The purpose of an operating system is to provide an environment in
which a user can execute programs conveniently and efficiently.
 An operating system is a software that manages computer hardware.
 The hardware must provide appropriate mechanisms to ensure the
correct operation of the computer system and to prevent user programs
from interfering with the proper operation of the system.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
Features of Operating system – Operating system has the following
features:
1.Convenience: An OS makes a computer more convenient to use.
2.Efficiency: An OS allows the computer system resources to be used
efficiently.
3.Ability to Evolve: An OS should be constructed in such a way as to
permit the effective development, testing, and introduction of new
system functions at the same time without interfering with service.
4.Throughput: An OS should be constructed so that It can give
maximum throughput(Number of tasks per unit time).
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
Different services provided by Operating System to User.
Following are a few common services provided by an operating system −
Program execution : A process includes the complete execution context
(code to execute, data to manipulate, registers, OS resources in use).
Following are the major activities of an operating system with respect to
program management −
 Loads a program into memory.
 Executes the program.
 Handles program's execution.
 Provides a mechanism for process synchronization.
 Provides a mechanism for process communication.
 Provides a mechanism for deadlock handling.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
I/O operations : An I/O subsystem comprises of I/O devices and their
corresponding driver software. Drivers hide the peculiarities of specific
hardware devices from the users.
An Operating System manages the communication between user and
device drivers.
 I/O operation means read or write operation with any file or any
specific I/O device.
 Operating system provides the access to the required I/O device when
required.
File System manipulation :A file system is normally organized into
directories for easy navigation and usage.
These directories may contain files and other directions. Following are the
major activities of an operating system with respect to file management −
 Program needs to read a file or write a file.
 The operating system gives the permission to the program for
operation on file.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
 Permission varies from read-only, read-write, denied and so on.
 Operating System provides an interface to the user to create/delete
files.
 Operating System provides an interface to the user to create/delete
directories.
 Operating System provides an interface to create the backup of file
system.
Communication : The OS handles routing and connection strategies,
and the problems of contention and security.
Following are the major activities of an operating system with respect to
communication −
 Two processes often require data to be transferred between them
 Both the processes can be on one computer or on different computers,
but are connected through a computer network.
 Communication may be implemented by two methods, either by
Shared Memory or by Message Passing.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
Error Detection : Errors can occur anytime and anywhere. An error may
occur in CPU, in I/O devices or in the memory hardware.
Following are the major activities of an operating system with respect to error
handling −
 The OS constantly checks for possible errors.
 The OS takes an appropriate action to ensure correct and consistent
computing.
Resource Allocation : In case of multi-user or multi-tasking environment,
resources such as main memory, CPU cycles and files storage are to be
allocated to each user or job.
Following are the major activities of an operating system with respect to
resource management −
 The OS manages all kinds of resources using schedulers.
 CPU scheduling algorithms are used for better utilization of CPU.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
Protection : Protection refers to a mechanism or a way to control the
access of programs, processes, or users to the resources defined by a
computer system.
Following are the major activities of an operating system with respect to
protection −
 The OS ensures that all access to system resources is controlled.
 The OS ensures that external I/O devices are protected from invalid
access attempts.
 The OS provides authentication features for each user by means of
passwords.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
What is a Process?
 Process is the execution of a program that performs the actions
specified in that program.
 It can be defined as an execution unit where a program runs.
 The OS helps you to create, schedule, and terminates the processes
which is used by CPU.
 A process created by the main process is called a child process.
 Process operations can be easily controlled with the help of
PCB(Process Control Block).
 Consider it as the brain of the process, which contains all the crucial
information related to processing like process id, priority, state, CPU
registers, etc.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
What is Process Management?
 Process management involves various tasks like creation, scheduling,
termination of processes, and a dead lock.
 Process is a program that is under execution, which is an important
part of modern-day operating systems.
 The OS must allocate resources that enable processes to share and
exchange information.
 It also protects the resources of each process from other methods and
allows synchronization among processes.
 It is the job of OS to manage all the running processes of the system.
 It handles operations by performing tasks like process scheduling and
such as resource allocation.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
Process Architecture
Here, is an Architecture diagram of the Process
Stack: The Stack stores temporary data like function parameters, returns
addresses, and local variables.
Heap: Allocates memory, which may be processed during its run time.
Data: It contains the variable.
Text : Text Section includes the current activity, which is represented by
the value of the Program Counter.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
 Stack
The process Stack contains the temporary data such as
method/function parameters, return address and local variables.
 Heap
This is dynamically allocated memory to a process during its run time.
 Data
This section contains the global and static variables.
 Text
This includes the current activity represented by the value of Program
Counter and the contents of the processor's registers.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
Process States
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
A process state is a condition of the process at a specific instant of time. It
also defines the current position of the process.
There are mainly seven stages of a process which are:
 New: The new process is created when a specific program calls from
secondary memory/ hard disk to primary memory/ RAM a
 Ready: In a ready state, the process should be loaded into the primary
memory, which is ready for execution.
 Waiting: The process is waiting for the allocation of CPU time and
other resources for execution.
 Executing: The process is an execution state.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
 Blocked: It is a time interval when a process is waiting for an event like
I/O operations to complete.
 Suspended: Suspended state defines the time when a process is ready
for execution but has not been placed in the ready queue by OS.
 Terminated: Terminated state specifies the time when a process is
terminated
After completing every step, all the resources are used by a process, and
memory becomes free.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
Process Life Cycle:
 When a process runs, it goes through many states.
 Distinct operating systems have different stages, and the names of these
states are not standardised.
 In general, a process can be in one of the five states listed below at any
given time.
1.Start
 When a process is started/created first, it is in this state.
2.Ready
 Here, the process is waiting for a processor to be assigned to it.
 Ready processes are waiting for the operating system to assign them a
processor so that they can run.
 The process may enter this state after starting or while running, but the
scheduler may interrupt it to assign the CPU to another process.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
3.Running
 When the OS scheduler assigns a processor to a process, the process
state gets set to running, and the processor executes the process
instructions.
4.Waiting
 If a process needs to wait for any resource, such as for user input or for a
file to become available, it enters the waiting state.
5.Terminated or Exit
 The process is relocated to the terminated state, where it waits for
removal from the main memory once it has completed its execution or
been terminated by the operating system.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
Process Control Block(PCB):
 PCB stands for Process Control Block.
 It is a data structure that is maintained by the Operating System for
every process.
 The PCB should be identified by an integer Process ID (PID).
 It helps you to store all the information required to keep track of all the
running processes.
 It is also accountable for storing the contents of processor registers.
These are saved when the process moves from the running state and
then returns back to it.
 The information is quickly updated in the PCB by the OS as soon as the
process makes the state transition.
 Every process is represented in the operating system by a process
control block, which is also called a task control block.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
Here, are important components of PCB
 Process state: A process can be new, ready, running, waiting, etc.
 Program counter: The program counter lets you know the address of
the next instruction, which should be executed for that process.
 CPU registers: This component includes accumulators, index and
general-purpose registers, and information of condition code.
 CPU scheduling information: This component includes a process
priority, pointers for scheduling queues, and various other scheduling
parameters.
 Accounting and business information: It includes the amount of
CPU and time utilities like real time used, job or process numbers, etc.
 Memory-management information: This information includes the
value of the base and limit registers, the page, or segment tables. This
depends on the memory system, which is used by the operating
system.
 I/O status information: This block includes a list of open files, the
list of I/O devices that are allocated to the process, etc.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
What is a System Call?
 A system call is a method for a computer program to request a service
from the kernel of the operating system on which it is running.
 A system call is a method of interacting with the operating system via
programs.
 A system call is a request from computer software to an operating
system's kernel.
 The Application Program Interface (API) connects the operating
system's functions to user programs.
 It acts as a link between the operating system and a process, allowing
user-level programs to request operating system services.
 The kernel system can only be accessed using system calls. System calls
are required for any programs that use resources.
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
Thanks !!!
Mrs.Harsha V Patil, MIT ACSC Alandi , Pune

Mais conteúdo relacionado

Semelhante a Introduction to OS.pptx

Semelhante a Introduction to OS.pptx (20)

Operating system notes pdf
Operating system notes pdfOperating system notes pdf
Operating system notes pdf
 
OS - Ch1
OS - Ch1OS - Ch1
OS - Ch1
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - Introduction
 
Operating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chaptersOperating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chapters
 
OS-Process.pdf
OS-Process.pdfOS-Process.pdf
OS-Process.pdf
 
Mca ii os u-1 introduction to os
Mca  ii  os u-1 introduction to osMca  ii  os u-1 introduction to os
Mca ii os u-1 introduction to os
 
Ch1
Ch1Ch1
Ch1
 
Ch1
Ch1Ch1
Ch1
 
Unit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptxUnit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptx
 
OPERATING SYSTEM
OPERATING SYSTEMOPERATING SYSTEM
OPERATING SYSTEM
 
Operating system
Operating systemOperating system
Operating system
 
OS UNIT-I Introdution to Operating systems.ppt
OS UNIT-I Introdution to Operating systems.pptOS UNIT-I Introdution to Operating systems.ppt
OS UNIT-I Introdution to Operating systems.ppt
 
Operating system
Operating systemOperating system
Operating system
 
Operating System Introduction
Operating System IntroductionOperating System Introduction
Operating System Introduction
 
Operating system
Operating systemOperating system
Operating system
 
Operating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESOperating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTES
 
Real time operating system
Real time operating systemReal time operating system
Real time operating system
 
Os
OsOs
Os
 
Os
OsOs
Os
 
Operating system
Operating systemOperating system
Operating system
 

Mais de Harsha Patel

Introduction to Reinforcement Learning.pptx
Introduction to Reinforcement Learning.pptxIntroduction to Reinforcement Learning.pptx
Introduction to Reinforcement Learning.pptxHarsha Patel
 
Introduction to Association Rules.pptx
Introduction  to  Association  Rules.pptxIntroduction  to  Association  Rules.pptx
Introduction to Association Rules.pptxHarsha Patel
 
Introduction to Clustering . pptx
Introduction    to     Clustering . pptxIntroduction    to     Clustering . pptx
Introduction to Clustering . pptxHarsha Patel
 
Introduction to Classification . pptx
Introduction  to   Classification . pptxIntroduction  to   Classification . pptx
Introduction to Classification . pptxHarsha Patel
 
Introduction to Regression . pptx
Introduction     to    Regression . pptxIntroduction     to    Regression . pptx
Introduction to Regression . pptxHarsha Patel
 
Intro of Machine Learning Models .pptx
Intro of Machine  Learning  Models .pptxIntro of Machine  Learning  Models .pptx
Intro of Machine Learning Models .pptxHarsha Patel
 
Introduction to Machine Learning.pptx
Introduction  to  Machine  Learning.pptxIntroduction  to  Machine  Learning.pptx
Introduction to Machine Learning.pptxHarsha Patel
 
Unit-V-Introduction to Data Mining.pptx
Unit-V-Introduction to  Data Mining.pptxUnit-V-Introduction to  Data Mining.pptx
Unit-V-Introduction to Data Mining.pptxHarsha Patel
 
Unit-IV-Introduction to Data Warehousing .pptx
Unit-IV-Introduction to Data Warehousing .pptxUnit-IV-Introduction to Data Warehousing .pptx
Unit-IV-Introduction to Data Warehousing .pptxHarsha Patel
 
Unit-III-AI Search Techniques and solution's
Unit-III-AI Search Techniques and solution'sUnit-III-AI Search Techniques and solution's
Unit-III-AI Search Techniques and solution'sHarsha Patel
 
Unit-II-Introduction of Artifiial Intelligence.pptx
Unit-II-Introduction of Artifiial Intelligence.pptxUnit-II-Introduction of Artifiial Intelligence.pptx
Unit-II-Introduction of Artifiial Intelligence.pptxHarsha Patel
 
Unit-I-Introduction to Recent Trends.pptx
Unit-I-Introduction to Recent Trends.pptxUnit-I-Introduction to Recent Trends.pptx
Unit-I-Introduction to Recent Trends.pptxHarsha Patel
 
Using Unix Commands.pptx
Using Unix Commands.pptxUsing Unix Commands.pptx
Using Unix Commands.pptxHarsha Patel
 
Using Vi Editor.pptx
Using Vi Editor.pptxUsing Vi Editor.pptx
Using Vi Editor.pptxHarsha Patel
 
Shell Scripting and Programming.pptx
Shell Scripting and Programming.pptxShell Scripting and Programming.pptx
Shell Scripting and Programming.pptxHarsha Patel
 
Managing Processes in Unix.pptx
Managing Processes in Unix.pptxManaging Processes in Unix.pptx
Managing Processes in Unix.pptxHarsha Patel
 
Introduction to Unix Concets.pptx
Introduction to Unix Concets.pptxIntroduction to Unix Concets.pptx
Introduction to Unix Concets.pptxHarsha Patel
 
Handling Files Under Unix.pptx
Handling Files Under Unix.pptxHandling Files Under Unix.pptx
Handling Files Under Unix.pptxHarsha Patel
 
Introduction to OS.pptx
Introduction to OS.pptxIntroduction to OS.pptx
Introduction to OS.pptxHarsha Patel
 
Using Unix Commands.pptx
Using Unix Commands.pptxUsing Unix Commands.pptx
Using Unix Commands.pptxHarsha Patel
 

Mais de Harsha Patel (20)

Introduction to Reinforcement Learning.pptx
Introduction to Reinforcement Learning.pptxIntroduction to Reinforcement Learning.pptx
Introduction to Reinforcement Learning.pptx
 
Introduction to Association Rules.pptx
Introduction  to  Association  Rules.pptxIntroduction  to  Association  Rules.pptx
Introduction to Association Rules.pptx
 
Introduction to Clustering . pptx
Introduction    to     Clustering . pptxIntroduction    to     Clustering . pptx
Introduction to Clustering . pptx
 
Introduction to Classification . pptx
Introduction  to   Classification . pptxIntroduction  to   Classification . pptx
Introduction to Classification . pptx
 
Introduction to Regression . pptx
Introduction     to    Regression . pptxIntroduction     to    Regression . pptx
Introduction to Regression . pptx
 
Intro of Machine Learning Models .pptx
Intro of Machine  Learning  Models .pptxIntro of Machine  Learning  Models .pptx
Intro of Machine Learning Models .pptx
 
Introduction to Machine Learning.pptx
Introduction  to  Machine  Learning.pptxIntroduction  to  Machine  Learning.pptx
Introduction to Machine Learning.pptx
 
Unit-V-Introduction to Data Mining.pptx
Unit-V-Introduction to  Data Mining.pptxUnit-V-Introduction to  Data Mining.pptx
Unit-V-Introduction to Data Mining.pptx
 
Unit-IV-Introduction to Data Warehousing .pptx
Unit-IV-Introduction to Data Warehousing .pptxUnit-IV-Introduction to Data Warehousing .pptx
Unit-IV-Introduction to Data Warehousing .pptx
 
Unit-III-AI Search Techniques and solution's
Unit-III-AI Search Techniques and solution'sUnit-III-AI Search Techniques and solution's
Unit-III-AI Search Techniques and solution's
 
Unit-II-Introduction of Artifiial Intelligence.pptx
Unit-II-Introduction of Artifiial Intelligence.pptxUnit-II-Introduction of Artifiial Intelligence.pptx
Unit-II-Introduction of Artifiial Intelligence.pptx
 
Unit-I-Introduction to Recent Trends.pptx
Unit-I-Introduction to Recent Trends.pptxUnit-I-Introduction to Recent Trends.pptx
Unit-I-Introduction to Recent Trends.pptx
 
Using Unix Commands.pptx
Using Unix Commands.pptxUsing Unix Commands.pptx
Using Unix Commands.pptx
 
Using Vi Editor.pptx
Using Vi Editor.pptxUsing Vi Editor.pptx
Using Vi Editor.pptx
 
Shell Scripting and Programming.pptx
Shell Scripting and Programming.pptxShell Scripting and Programming.pptx
Shell Scripting and Programming.pptx
 
Managing Processes in Unix.pptx
Managing Processes in Unix.pptxManaging Processes in Unix.pptx
Managing Processes in Unix.pptx
 
Introduction to Unix Concets.pptx
Introduction to Unix Concets.pptxIntroduction to Unix Concets.pptx
Introduction to Unix Concets.pptx
 
Handling Files Under Unix.pptx
Handling Files Under Unix.pptxHandling Files Under Unix.pptx
Handling Files Under Unix.pptx
 
Introduction to OS.pptx
Introduction to OS.pptxIntroduction to OS.pptx
Introduction to OS.pptx
 
Using Unix Commands.pptx
Using Unix Commands.pptxUsing Unix Commands.pptx
Using Unix Commands.pptx
 

Último

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 

Último (20)

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 

Introduction to OS.pptx

  • 1. Introduction to Operating System Concepts Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 2. Introduction to Operating System Concept:  An operating system acts as an intermediary between the user of a computer and computer hardware.  The purpose of an operating system is to provide an environment in which a user can execute programs conveniently and efficiently.  An operating system is a software that manages computer hardware.  The hardware must provide appropriate mechanisms to ensure the correct operation of the computer system and to prevent user programs from interfering with the proper operation of the system. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 3. Features of Operating system – Operating system has the following features: 1.Convenience: An OS makes a computer more convenient to use. 2.Efficiency: An OS allows the computer system resources to be used efficiently. 3.Ability to Evolve: An OS should be constructed in such a way as to permit the effective development, testing, and introduction of new system functions at the same time without interfering with service. 4.Throughput: An OS should be constructed so that It can give maximum throughput(Number of tasks per unit time). Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 4. Different services provided by Operating System to User. Following are a few common services provided by an operating system − Program execution : A process includes the complete execution context (code to execute, data to manipulate, registers, OS resources in use). Following are the major activities of an operating system with respect to program management −  Loads a program into memory.  Executes the program.  Handles program's execution.  Provides a mechanism for process synchronization.  Provides a mechanism for process communication.  Provides a mechanism for deadlock handling. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 5. I/O operations : An I/O subsystem comprises of I/O devices and their corresponding driver software. Drivers hide the peculiarities of specific hardware devices from the users. An Operating System manages the communication between user and device drivers.  I/O operation means read or write operation with any file or any specific I/O device.  Operating system provides the access to the required I/O device when required. File System manipulation :A file system is normally organized into directories for easy navigation and usage. These directories may contain files and other directions. Following are the major activities of an operating system with respect to file management −  Program needs to read a file or write a file.  The operating system gives the permission to the program for operation on file. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 6.  Permission varies from read-only, read-write, denied and so on.  Operating System provides an interface to the user to create/delete files.  Operating System provides an interface to the user to create/delete directories.  Operating System provides an interface to create the backup of file system. Communication : The OS handles routing and connection strategies, and the problems of contention and security. Following are the major activities of an operating system with respect to communication −  Two processes often require data to be transferred between them  Both the processes can be on one computer or on different computers, but are connected through a computer network.  Communication may be implemented by two methods, either by Shared Memory or by Message Passing. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 7. Error Detection : Errors can occur anytime and anywhere. An error may occur in CPU, in I/O devices or in the memory hardware. Following are the major activities of an operating system with respect to error handling −  The OS constantly checks for possible errors.  The OS takes an appropriate action to ensure correct and consistent computing. Resource Allocation : In case of multi-user or multi-tasking environment, resources such as main memory, CPU cycles and files storage are to be allocated to each user or job. Following are the major activities of an operating system with respect to resource management −  The OS manages all kinds of resources using schedulers.  CPU scheduling algorithms are used for better utilization of CPU. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 8. Protection : Protection refers to a mechanism or a way to control the access of programs, processes, or users to the resources defined by a computer system. Following are the major activities of an operating system with respect to protection −  The OS ensures that all access to system resources is controlled.  The OS ensures that external I/O devices are protected from invalid access attempts.  The OS provides authentication features for each user by means of passwords. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 9. What is a Process?  Process is the execution of a program that performs the actions specified in that program.  It can be defined as an execution unit where a program runs.  The OS helps you to create, schedule, and terminates the processes which is used by CPU.  A process created by the main process is called a child process.  Process operations can be easily controlled with the help of PCB(Process Control Block).  Consider it as the brain of the process, which contains all the crucial information related to processing like process id, priority, state, CPU registers, etc. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 10. What is Process Management?  Process management involves various tasks like creation, scheduling, termination of processes, and a dead lock.  Process is a program that is under execution, which is an important part of modern-day operating systems.  The OS must allocate resources that enable processes to share and exchange information.  It also protects the resources of each process from other methods and allows synchronization among processes.  It is the job of OS to manage all the running processes of the system.  It handles operations by performing tasks like process scheduling and such as resource allocation. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 11. Process Architecture Here, is an Architecture diagram of the Process Stack: The Stack stores temporary data like function parameters, returns addresses, and local variables. Heap: Allocates memory, which may be processed during its run time. Data: It contains the variable. Text : Text Section includes the current activity, which is represented by the value of the Program Counter. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 12.  Stack The process Stack contains the temporary data such as method/function parameters, return address and local variables.  Heap This is dynamically allocated memory to a process during its run time.  Data This section contains the global and static variables.  Text This includes the current activity represented by the value of Program Counter and the contents of the processor's registers. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 13. Process States Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 14. A process state is a condition of the process at a specific instant of time. It also defines the current position of the process. There are mainly seven stages of a process which are:  New: The new process is created when a specific program calls from secondary memory/ hard disk to primary memory/ RAM a  Ready: In a ready state, the process should be loaded into the primary memory, which is ready for execution.  Waiting: The process is waiting for the allocation of CPU time and other resources for execution.  Executing: The process is an execution state. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 15.  Blocked: It is a time interval when a process is waiting for an event like I/O operations to complete.  Suspended: Suspended state defines the time when a process is ready for execution but has not been placed in the ready queue by OS.  Terminated: Terminated state specifies the time when a process is terminated After completing every step, all the resources are used by a process, and memory becomes free. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 16. Process Life Cycle:  When a process runs, it goes through many states.  Distinct operating systems have different stages, and the names of these states are not standardised.  In general, a process can be in one of the five states listed below at any given time. 1.Start  When a process is started/created first, it is in this state. 2.Ready  Here, the process is waiting for a processor to be assigned to it.  Ready processes are waiting for the operating system to assign them a processor so that they can run.  The process may enter this state after starting or while running, but the scheduler may interrupt it to assign the CPU to another process. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 17. 3.Running  When the OS scheduler assigns a processor to a process, the process state gets set to running, and the processor executes the process instructions. 4.Waiting  If a process needs to wait for any resource, such as for user input or for a file to become available, it enters the waiting state. 5.Terminated or Exit  The process is relocated to the terminated state, where it waits for removal from the main memory once it has completed its execution or been terminated by the operating system. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 18. Process Control Block(PCB):  PCB stands for Process Control Block.  It is a data structure that is maintained by the Operating System for every process.  The PCB should be identified by an integer Process ID (PID).  It helps you to store all the information required to keep track of all the running processes.  It is also accountable for storing the contents of processor registers. These are saved when the process moves from the running state and then returns back to it.  The information is quickly updated in the PCB by the OS as soon as the process makes the state transition.  Every process is represented in the operating system by a process control block, which is also called a task control block. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 19. Here, are important components of PCB  Process state: A process can be new, ready, running, waiting, etc.  Program counter: The program counter lets you know the address of the next instruction, which should be executed for that process.  CPU registers: This component includes accumulators, index and general-purpose registers, and information of condition code.  CPU scheduling information: This component includes a process priority, pointers for scheduling queues, and various other scheduling parameters.  Accounting and business information: It includes the amount of CPU and time utilities like real time used, job or process numbers, etc.  Memory-management information: This information includes the value of the base and limit registers, the page, or segment tables. This depends on the memory system, which is used by the operating system.  I/O status information: This block includes a list of open files, the list of I/O devices that are allocated to the process, etc. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 20. What is a System Call?  A system call is a method for a computer program to request a service from the kernel of the operating system on which it is running.  A system call is a method of interacting with the operating system via programs.  A system call is a request from computer software to an operating system's kernel.  The Application Program Interface (API) connects the operating system's functions to user programs.  It acts as a link between the operating system and a process, allowing user-level programs to request operating system services.  The kernel system can only be accessed using system calls. System calls are required for any programs that use resources. Mrs.Harsha V Patil, MIT ACSC Alandi , Pune
  • 21. Thanks !!! Mrs.Harsha V Patil, MIT ACSC Alandi , Pune