SlideShare uma empresa Scribd logo
1 de 16
Baixar para ler offline
Operating System An operating system (OS) is software that manages the computer hardware as well as providing an environment for application programs to run. An operating system is an interface between a computer and user. It provides either Graphical User Interface or Command Line Interface.
Types of Operating Systems 1. Real-time Operating System: It is a multitasking operating system that aims at executing real-time applications. They either have an event-driven or a time-sharing design. An event-driven system switches between tasks based of their priorities while time-sharing operating systems switch tasks based on clock interrupts. They have well defined, fixed-time constraints. 2. Distributed Operating System: An operating system that manages a group of independent computers that are networked to provide the users with access to the various resources that the system maintains and makes them appear to be a single computer is known as a distributed operating system.  3. Embedded System: This operating systems are designed for being used in embedded computer systems. They are designed to operate on small machines like PDAs with less autonomy. They are able to operate with a limited number of resources. They are very compact and extremely efficient by design. Eg. Windows CE and Minix 3.
Multi-user Operating Systems: These systems allow a multiple users to access a computer system concurrently. Access is provided on a time sharing basis.  Multi-tasking Operating Systems(Time-sharing): It allows the execution of multiple tasks at one time.      Pre-emptive multitasking- slices the CPU time and dedicates one slot to each of the programs. Eg. LINUX and Solaris. Cooperative multitasking- is achieved by relying on each process to give time to the other processes in a defined manner. Eg. MS Windows. Multi-programming: Residing of more than one processes in main memory in order to increase CPU utilization. Multi-processing System: Two or more processors in close communication sharing some computer resources. It is used to increase throughput and reliability. It is more economical. Dual Mode Operation- Kernel mode: Execution of tasks related to operating system.      User Mode: Execution of user applications and other user related tasks.
Kernel – basic component of OS The Kernelis the central component of operating system. It is a bridge between applications and the actual data processing done at the hardware level. The kernel's responsibilities include managing the system's resources through inter-process communication mechanisms and system calls.  The basic facility provided by kernel include resources such as:-  The Central Processing Unit. This is the most central part of a computer system, responsible for running or executing programs on it. The kernel takes responsibility for deciding at any time which of the many running programs should be allocated to the processor or processors (each of which can usually run only one program at a time). The computer's memory. Memory is used to store both program instructions and data. Typically, both need to be present in memory in order for a program to execute. The kernel is responsible for deciding which memory each process can use, and determining what to do when not enough is available. Any Input/Output (I/O) devices present in the computer, such as keyboard, mouse, disk drives, printers, displays, etc. The kernel allocates requests from applications to perform I/O to an appropriate device and provides convenient methods for using the device.
Monolithic kernels : In a monolithic kernel, all OS services run along with the main kernel thread, thus also residing in the same memory area. This approach provides rich and powerful hardware access. It is "easier to implement a monolithic kernel" than microkernels. The main disadvantages of monolithic kernels are the dependencies between system components -  a bug in a device driver might crash the entire system and the fact that large kernels can become very difficult to maintain. Microkernels : The microkernel approach consists of defining a simple abstraction over the hardware, with a set of primitives or system calls to implement minimal OS services such as memory management, multitasking, and inter-process communication. Other services, including those normally provided by the kernel, such as networking, are implemented in user-space programs, referred to as servers. Microkernels are easier to maintain than monolithic kernels, but the large number of system calls and context switches might slow down the system because they typically generate more overhead than plain function calls. A microkernel allows the implementation of the remaining part of the operating system as a normal application program written in a high-level language, and the use of different operating systems on top of the same unchanged kernel.It is also possible to dynamically switch among operating systems and to have more than one active simultaneously.
Process Management Process States ,[object Object]
Running- Instructions are being executed.
Waiting- The process is waiting for some event to occur.
Ready- The process is waiting to be assigned to a processor.
Terminated- The process has finished execution.Process Control Block- contains all information associated with a specific process like process state, program counter, CPU registers and info regarding CPU scheduling algorithms, memory, I/O and accounting.
Multithreaded process- Thread is a light-weight process within a process defining flow of control. A multithreaded process contains several different flows of control within the same address space. The benefits of multithreading include increased responsiveness to user, resource sharing, economy and ability to take advantage of multiprocessor architectures. Schedulers are mainly of three types:     Long-term schedulers: Select the process that contend    for the CPU from the job pool.     Middle-term schedulers: It schedules swapping in and out of processes from main memory which are partially executed.     Short-term Schedulers: Select among the processes which are ready to execute and allocates CPU to one of them.
Process Scheduling Algorithms First-Come, First-Served Scheduling: The process that requests the CPU first is allocated first. Shortest Job First Scheduling: On CPU availabililty, the next smallest CPU burst process is allocated. Priority Scheduling: Each process is associated with priorities. Process with highest priority is allocated to the CPU. Round-Robin Scheduling: Similar to FCFS but on time sharing basis. Each process executes for a fixed time slot in a circular queue. Multilevel Queue Scheduling: Priority queues are defined for every process like system processes, interactive processes, interactive editing processes, batch processes and student processes.
Deadlocks- A deadlock state occurs when two or more processes are waiting indefinitely for an event that can be caused only one by one of the waiting processes. A deadlock occurs if four necessary conditions occur simultaneously i.e. Mutual exclusion, Hold and Wait, No preemption and Circular Wait.  Prevention: Ensure that one of the necessary conditions never holds. Avoidance: Employ protocol and algorithms to avoid deadlocks. Detection: First detect the occurrence of deadlock and then employ some recovery scheme. There are three principal methods for dealing deadlocks: 1. Use some protocol to prevent or avoid deadlocks, ensuring that the system will never enter a deadlock state. 2. Allow the system to enter a deadlock state, detect it, and then recover. 3. Ignore the problem altogether and pretend that deadlocks never occur in the system.
Memory Management Paging & Segmentation- memory management schemes that permits the physical address space of  a process to be noncontiguous. It involves breaking physical memory into fixed-sized blocks called frames and breaking logical memory into blocks of the same size called pages. When a process is to be executed, its pages are loaded into any available memory frames from the backing store. A  process can be swapped temporarily out of memory to a backing store and then brought back into memory for continued execution is Swapping. Swapping policy is used for priority based scheduling algorithms. Pages need register(Page Table Base Register) and cache(Translation Look-aside buffer). Segmentation- is for user view of memory management as it supports logical address space segments in contrast to physical address space of paging technique.
Virtual Memory-  is a technique that enables us to map a large logical address space onto a smaller physical memory and is implemented by demand paging. Demand Paging- loading of pages only when they are needed. Access to a page marked invalid causes a pafe fault. Rather than swapping whole process into memory only required pages are swapped. This is done by various page replacement methods:-       a)First In First Out-Oldest page is replaced by new one.       b)Optimal Page Replacement- Replace the page that will not be used for the longest period of time.       c) Least Recently Used Page Replacement- Replace the page that has not been used for the longest period of time. Thrashing- high paging activity ie process spends more time paging than executing. This is resolved by using working-set model. The working set is the set of pages in current locality and provides enough frames to process to avoid thrashing.
Storage Management File System & Allocation methods File is a sequence of logical records which are required to be mapped onto physical storage devices. Organised into directories for ease of use. Various Directory Structures:-Single-level, Two-level, Tree-Structured, Acyclic-Graph and General Graph Directories. Various file allocation methods on disks:-     a) Contiguous allocation- file occupy a set of contiguous blocks on the disk. It can suffer from external fragmentation.      b) Linked allocation- each file is a linked list of disk blocks. It can be used only for sequential-access files, inefficient to support direct-access capability.     c) Indexed allocation- each file has its own index block, which is an array of disk-block addresses. It may require substantial overhead for its index block

Mais conteúdo relacionado

Mais procurados

1 types of operating system
1 types of operating system1 types of operating system
1 types of operating systemMrsNunn
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)Vaibhav Bajaj
 
Practical examples for different types of operating systems.
Practical examples for different types of  operating systems.Practical examples for different types of  operating systems.
Practical examples for different types of operating systems.Deepa
 
Os organization
Os organizationOs organization
Os organizationMohd Arif
 
How Operating System Works
How Operating System WorksHow Operating System Works
How Operating System Worksguevarra_2000
 
Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its functionNikhi Jain
 
Operating system; Multitasking
Operating system; MultitaskingOperating system; Multitasking
Operating system; MultitaskingFlameDimension95
 
Operating System-Introduction
Operating System-IntroductionOperating System-Introduction
Operating System-IntroductionShipra Swati
 
Operating systems11 9-07
Operating systems11 9-07Operating systems11 9-07
Operating systems11 9-07ainfara
 
Operating systems By Awais
Operating systems By AwaisOperating systems By Awais
Operating systems By AwaisAwaisch3
 
Operating system introducton and tyes
Operating system introducton and tyesOperating system introducton and tyes
Operating system introducton and tyesNancy Verma
 

Mais procurados (20)

Lesson 4 Types Of Operating Systems
Lesson 4 Types Of Operating SystemsLesson 4 Types Of Operating Systems
Lesson 4 Types Of Operating Systems
 
Os
OsOs
Os
 
1 types of operating system
1 types of operating system1 types of operating system
1 types of operating system
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)
 
Practical examples for different types of operating systems.
Practical examples for different types of  operating systems.Practical examples for different types of  operating systems.
Practical examples for different types of operating systems.
 
Os organization
Os organizationOs organization
Os organization
 
Types of o.s
Types of o.sTypes of o.s
Types of o.s
 
How Operating System Works
How Operating System WorksHow Operating System Works
How Operating System Works
 
Operating system
Operating systemOperating system
Operating system
 
Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its function
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
Operating system; Multitasking
Operating system; MultitaskingOperating system; Multitasking
Operating system; Multitasking
 
Operating system
Operating systemOperating system
Operating system
 
operating system
operating systemoperating system
operating system
 
Ch1
Ch1Ch1
Ch1
 
Operating System-Introduction
Operating System-IntroductionOperating System-Introduction
Operating System-Introduction
 
Operating systems11 9-07
Operating systems11 9-07Operating systems11 9-07
Operating systems11 9-07
 
Operating systems By Awais
Operating systems By AwaisOperating systems By Awais
Operating systems By Awais
 
Operating system introducton and tyes
Operating system introducton and tyesOperating system introducton and tyes
Operating system introducton and tyes
 
Computer Operating System
Computer Operating SystemComputer Operating System
Computer Operating System
 

Destaque

Personal Cloud Operating Systems
Personal Cloud Operating SystemsPersonal Cloud Operating Systems
Personal Cloud Operating SystemsPhil Windley
 
The operating system pres jay
The operating system pres jayThe operating system pres jay
The operating system pres jayJHUSSAIN1702
 
Embedded os
Embedded osEmbedded os
Embedded oschian417
 
The Simple Scheduler in Embedded System @ OSDC.TW 2014
The Simple Scheduler in Embedded System @ OSDC.TW 2014The Simple Scheduler in Embedded System @ OSDC.TW 2014
The Simple Scheduler in Embedded System @ OSDC.TW 2014Jian-Hong Pan
 
Aemo's system event report new south wales, 10 february 2017 (nsw)
Aemo's system event report new south wales, 10 february 2017 (nsw)Aemo's system event report new south wales, 10 february 2017 (nsw)
Aemo's system event report new south wales, 10 february 2017 (nsw)Lisa Munoz
 
3 definition of operating systems
3 definition of operating systems3 definition of operating systems
3 definition of operating systemsmyrajendra
 
Marketing Plan of Mobile App - Plan Your Event
Marketing Plan of Mobile App - Plan Your EventMarketing Plan of Mobile App - Plan Your Event
Marketing Plan of Mobile App - Plan Your EventAditi Maheshwari
 
Timeline and checklist for event planning
Timeline and checklist for event planningTimeline and checklist for event planning
Timeline and checklist for event planningAnna Brown
 
operating system
operating systemoperating system
operating systemKadianAman
 
Event planning guidelines_final_version_4_april_2009
Event planning guidelines_final_version_4_april_2009Event planning guidelines_final_version_4_april_2009
Event planning guidelines_final_version_4_april_2009Ramess Dussoye
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating SystemTech_MX
 
Functions Of Operating Systems
Functions Of Operating SystemsFunctions Of Operating Systems
Functions Of Operating SystemsAkshay Kurup
 
Tech Talk: ONOS- A Distributed SDN Network Operating System
Tech Talk: ONOS- A Distributed SDN Network Operating SystemTech Talk: ONOS- A Distributed SDN Network Operating System
Tech Talk: ONOS- A Distributed SDN Network Operating Systemnvirters
 
Operating system overview concepts ppt
Operating system overview concepts pptOperating system overview concepts ppt
Operating system overview concepts pptRajendraPrasad Alladi
 

Destaque (20)

Personal Cloud Operating Systems
Personal Cloud Operating SystemsPersonal Cloud Operating Systems
Personal Cloud Operating Systems
 
The operating system pres jay
The operating system pres jayThe operating system pres jay
The operating system pres jay
 
Event Plan Template
Event Plan TemplateEvent Plan Template
Event Plan Template
 
Embedded os
Embedded osEmbedded os
Embedded os
 
The Simple Scheduler in Embedded System @ OSDC.TW 2014
The Simple Scheduler in Embedded System @ OSDC.TW 2014The Simple Scheduler in Embedded System @ OSDC.TW 2014
The Simple Scheduler in Embedded System @ OSDC.TW 2014
 
Aemo's system event report new south wales, 10 february 2017 (nsw)
Aemo's system event report new south wales, 10 february 2017 (nsw)Aemo's system event report new south wales, 10 february 2017 (nsw)
Aemo's system event report new south wales, 10 february 2017 (nsw)
 
3 definition of operating systems
3 definition of operating systems3 definition of operating systems
3 definition of operating systems
 
Online Event Planning Checklist
Online Event Planning Checklist Online Event Planning Checklist
Online Event Planning Checklist
 
Marketing Plan of Mobile App - Plan Your Event
Marketing Plan of Mobile App - Plan Your EventMarketing Plan of Mobile App - Plan Your Event
Marketing Plan of Mobile App - Plan Your Event
 
Event planning checklist
Event planning checklistEvent planning checklist
Event planning checklist
 
Timeline and checklist for event planning
Timeline and checklist for event planningTimeline and checklist for event planning
Timeline and checklist for event planning
 
EVENT MANAGEMENT PLAN CHECKLIST AND GUIDE
EVENT MANAGEMENT PLAN CHECKLIST AND GUIDEEVENT MANAGEMENT PLAN CHECKLIST AND GUIDE
EVENT MANAGEMENT PLAN CHECKLIST AND GUIDE
 
Event checklist
Event checklistEvent checklist
Event checklist
 
operating system
operating systemoperating system
operating system
 
Event planning guidelines_final_version_4_april_2009
Event planning guidelines_final_version_4_april_2009Event planning guidelines_final_version_4_april_2009
Event planning guidelines_final_version_4_april_2009
 
RTOS - Real Time Operating Systems
RTOS - Real Time Operating SystemsRTOS - Real Time Operating Systems
RTOS - Real Time Operating Systems
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating System
 
Functions Of Operating Systems
Functions Of Operating SystemsFunctions Of Operating Systems
Functions Of Operating Systems
 
Tech Talk: ONOS- A Distributed SDN Network Operating System
Tech Talk: ONOS- A Distributed SDN Network Operating SystemTech Talk: ONOS- A Distributed SDN Network Operating System
Tech Talk: ONOS- A Distributed SDN Network Operating System
 
Operating system overview concepts ppt
Operating system overview concepts pptOperating system overview concepts ppt
Operating system overview concepts ppt
 

Semelhante a Operating system

Semelhante a Operating system (20)

Operating System Simple Introduction
Operating System Simple IntroductionOperating System Simple Introduction
Operating System Simple Introduction
 
Operating system
Operating systemOperating system
Operating system
 
Basics of Operating System
Basics of Operating SystemBasics of Operating System
Basics of Operating System
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
Operating System Introduction.pptx
Operating System Introduction.pptxOperating System Introduction.pptx
Operating System Introduction.pptx
 
Understanding Basics of OS
Understanding Basics of OSUnderstanding Basics of OS
Understanding Basics of OS
 
4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado
 
Operating system Chapter One
Operating system Chapter OneOperating system Chapter One
Operating system Chapter One
 
Operating system Concepts
Operating system Concepts Operating system Concepts
Operating system Concepts
 
OS UNIT1.pptx
OS UNIT1.pptxOS UNIT1.pptx
OS UNIT1.pptx
 
Operating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESOperating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTES
 
Unit 4 Real Time Operating System
Unit 4 Real Time Operating SystemUnit 4 Real Time Operating System
Unit 4 Real Time Operating System
 
Ch3 OS
Ch3 OSCh3 OS
Ch3 OS
 
OSCh3
OSCh3OSCh3
OSCh3
 
OS_Ch3
OS_Ch3OS_Ch3
OS_Ch3
 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2
 
OS.pptx
OS.pptxOS.pptx
OS.pptx
 
Operating System-adi.pdf
Operating System-adi.pdfOperating System-adi.pdf
Operating System-adi.pdf
 
Operating system
Operating systemOperating system
Operating system
 
Ch1
Ch1Ch1
Ch1
 

Último

Canada PR - Eligibility, Steps to apply.pptx
Canada PR - Eligibility, Steps to apply.pptxCanada PR - Eligibility, Steps to apply.pptx
Canada PR - Eligibility, Steps to apply.pptxY-Axis Overseas Careers
 
László Puczkó Wellbeing Tourism and Economy
László Puczkó Wellbeing Tourism and EconomyLászló Puczkó Wellbeing Tourism and Economy
László Puczkó Wellbeing Tourism and EconomyEDGAR TARRÉS FALCÓ
 
What Unwritten Rules Of Surfing Etiquette Are Crucial For Beginners To Grasp
What Unwritten Rules Of Surfing Etiquette Are Crucial For Beginners To GraspWhat Unwritten Rules Of Surfing Etiquette Are Crucial For Beginners To Grasp
What Unwritten Rules Of Surfing Etiquette Are Crucial For Beginners To GraspHanalei Surf School
 
Access to Secretarial and Administrative Support in Serviced Apartments.pptx
Access to Secretarial and Administrative Support in Serviced Apartments.pptxAccess to Secretarial and Administrative Support in Serviced Apartments.pptx
Access to Secretarial and Administrative Support in Serviced Apartments.pptxPAJASA Apartments
 
Discover the Magic of Sicily: Your Travel Guide
Discover the Magic of Sicily: Your Travel GuideDiscover the Magic of Sicily: Your Travel Guide
Discover the Magic of Sicily: Your Travel GuideTime for Sicily
 
Visit the Famous Temples of Dev Bhoomi by Uttarakhand tour Package
Visit the Famous Temples of Dev Bhoomi by Uttarakhand tour PackageVisit the Famous Temples of Dev Bhoomi by Uttarakhand tour Package
Visit the Famous Temples of Dev Bhoomi by Uttarakhand tour PackageDhruv Sharma
 
What Are The Must-Know Tips For First-Time Jet Skiers In Aruba
What Are The Must-Know Tips For First-Time Jet Skiers In ArubaWhat Are The Must-Know Tips For First-Time Jet Skiers In Aruba
What Are The Must-Know Tips For First-Time Jet Skiers In ArubaDelphi Watersports
 
Top Five Best Places to Visit in India.pdf
Top Five Best Places to Visit in India.pdfTop Five Best Places to Visit in India.pdf
Top Five Best Places to Visit in India.pdfonlinevisaindia
 
The Genuine Student Requirement for Australian Student Visas
The Genuine Student Requirement for Australian Student VisasThe Genuine Student Requirement for Australian Student Visas
The Genuine Student Requirement for Australian Student VisasAmit Kakkar
 
Lucknow to Sitapur Cab | Lucknow to Sitapur Taxi
Lucknow to Sitapur Cab | Lucknow to Sitapur TaxiLucknow to Sitapur Cab | Lucknow to Sitapur Taxi
Lucknow to Sitapur Cab | Lucknow to Sitapur TaxiCab Bazar
 
Sizzling Summer Adventures Unforgettable Tours Under the Sun
Sizzling Summer Adventures Unforgettable Tours Under the SunSizzling Summer Adventures Unforgettable Tours Under the Sun
Sizzling Summer Adventures Unforgettable Tours Under the SunSnowshoe Tahoe
 
Busy Season Mastery Simple Strategies to Optimize Your Lodging Business!.pptx
Busy Season Mastery Simple Strategies to Optimize Your Lodging Business!.pptxBusy Season Mastery Simple Strategies to Optimize Your Lodging Business!.pptx
Busy Season Mastery Simple Strategies to Optimize Your Lodging Business!.pptxRezStream
 
5 beautyfull places visiting in uttrakhand
5 beautyfull places visiting in uttrakhand5 beautyfull places visiting in uttrakhand
5 beautyfull places visiting in uttrakhandaradhya3287
 
_Unforgettable Chandigarh to Himachal Pradesh Tour Package.pdf
_Unforgettable Chandigarh to Himachal Pradesh Tour Package.pdf_Unforgettable Chandigarh to Himachal Pradesh Tour Package.pdf
_Unforgettable Chandigarh to Himachal Pradesh Tour Package.pdfNewChandigarhTravels
 
Melanie Smith Tourism, Wellbeing and Happiness
Melanie Smith Tourism, Wellbeing and HappinessMelanie Smith Tourism, Wellbeing and Happiness
Melanie Smith Tourism, Wellbeing and HappinessEDGAR TARRÉS FALCÓ
 
Backpacking in Bhutan: A Thrilling Adventure
Backpacking in Bhutan: A Thrilling AdventureBackpacking in Bhutan: A Thrilling Adventure
Backpacking in Bhutan: A Thrilling AdventureKunal Kunal
 
What Are Some Tips For A Safe White River Rafting Experience
What Are Some Tips For A Safe White River Rafting ExperienceWhat Are Some Tips For A Safe White River Rafting Experience
What Are Some Tips For A Safe White River Rafting ExperienceTahoe Whitewater Tours
 
What Safety Precautions Are Recommended For Na Pali Snorkeling Adventure
What Safety Precautions Are Recommended For Na Pali Snorkeling AdventureWhat Safety Precautions Are Recommended For Na Pali Snorkeling Adventure
What Safety Precautions Are Recommended For Na Pali Snorkeling AdventureHanalei Charters
 

Último (19)

Why Is Whitewater Rafting The Ultimate Water Adventure
Why Is Whitewater Rafting The Ultimate Water AdventureWhy Is Whitewater Rafting The Ultimate Water Adventure
Why Is Whitewater Rafting The Ultimate Water Adventure
 
Canada PR - Eligibility, Steps to apply.pptx
Canada PR - Eligibility, Steps to apply.pptxCanada PR - Eligibility, Steps to apply.pptx
Canada PR - Eligibility, Steps to apply.pptx
 
László Puczkó Wellbeing Tourism and Economy
László Puczkó Wellbeing Tourism and EconomyLászló Puczkó Wellbeing Tourism and Economy
László Puczkó Wellbeing Tourism and Economy
 
What Unwritten Rules Of Surfing Etiquette Are Crucial For Beginners To Grasp
What Unwritten Rules Of Surfing Etiquette Are Crucial For Beginners To GraspWhat Unwritten Rules Of Surfing Etiquette Are Crucial For Beginners To Grasp
What Unwritten Rules Of Surfing Etiquette Are Crucial For Beginners To Grasp
 
Access to Secretarial and Administrative Support in Serviced Apartments.pptx
Access to Secretarial and Administrative Support in Serviced Apartments.pptxAccess to Secretarial and Administrative Support in Serviced Apartments.pptx
Access to Secretarial and Administrative Support in Serviced Apartments.pptx
 
Discover the Magic of Sicily: Your Travel Guide
Discover the Magic of Sicily: Your Travel GuideDiscover the Magic of Sicily: Your Travel Guide
Discover the Magic of Sicily: Your Travel Guide
 
Visit the Famous Temples of Dev Bhoomi by Uttarakhand tour Package
Visit the Famous Temples of Dev Bhoomi by Uttarakhand tour PackageVisit the Famous Temples of Dev Bhoomi by Uttarakhand tour Package
Visit the Famous Temples of Dev Bhoomi by Uttarakhand tour Package
 
What Are The Must-Know Tips For First-Time Jet Skiers In Aruba
What Are The Must-Know Tips For First-Time Jet Skiers In ArubaWhat Are The Must-Know Tips For First-Time Jet Skiers In Aruba
What Are The Must-Know Tips For First-Time Jet Skiers In Aruba
 
Top Five Best Places to Visit in India.pdf
Top Five Best Places to Visit in India.pdfTop Five Best Places to Visit in India.pdf
Top Five Best Places to Visit in India.pdf
 
The Genuine Student Requirement for Australian Student Visas
The Genuine Student Requirement for Australian Student VisasThe Genuine Student Requirement for Australian Student Visas
The Genuine Student Requirement for Australian Student Visas
 
Lucknow to Sitapur Cab | Lucknow to Sitapur Taxi
Lucknow to Sitapur Cab | Lucknow to Sitapur TaxiLucknow to Sitapur Cab | Lucknow to Sitapur Taxi
Lucknow to Sitapur Cab | Lucknow to Sitapur Taxi
 
Sizzling Summer Adventures Unforgettable Tours Under the Sun
Sizzling Summer Adventures Unforgettable Tours Under the SunSizzling Summer Adventures Unforgettable Tours Under the Sun
Sizzling Summer Adventures Unforgettable Tours Under the Sun
 
Busy Season Mastery Simple Strategies to Optimize Your Lodging Business!.pptx
Busy Season Mastery Simple Strategies to Optimize Your Lodging Business!.pptxBusy Season Mastery Simple Strategies to Optimize Your Lodging Business!.pptx
Busy Season Mastery Simple Strategies to Optimize Your Lodging Business!.pptx
 
5 beautyfull places visiting in uttrakhand
5 beautyfull places visiting in uttrakhand5 beautyfull places visiting in uttrakhand
5 beautyfull places visiting in uttrakhand
 
_Unforgettable Chandigarh to Himachal Pradesh Tour Package.pdf
_Unforgettable Chandigarh to Himachal Pradesh Tour Package.pdf_Unforgettable Chandigarh to Himachal Pradesh Tour Package.pdf
_Unforgettable Chandigarh to Himachal Pradesh Tour Package.pdf
 
Melanie Smith Tourism, Wellbeing and Happiness
Melanie Smith Tourism, Wellbeing and HappinessMelanie Smith Tourism, Wellbeing and Happiness
Melanie Smith Tourism, Wellbeing and Happiness
 
Backpacking in Bhutan: A Thrilling Adventure
Backpacking in Bhutan: A Thrilling AdventureBackpacking in Bhutan: A Thrilling Adventure
Backpacking in Bhutan: A Thrilling Adventure
 
What Are Some Tips For A Safe White River Rafting Experience
What Are Some Tips For A Safe White River Rafting ExperienceWhat Are Some Tips For A Safe White River Rafting Experience
What Are Some Tips For A Safe White River Rafting Experience
 
What Safety Precautions Are Recommended For Na Pali Snorkeling Adventure
What Safety Precautions Are Recommended For Na Pali Snorkeling AdventureWhat Safety Precautions Are Recommended For Na Pali Snorkeling Adventure
What Safety Precautions Are Recommended For Na Pali Snorkeling Adventure
 

Operating system

  • 1. Operating System An operating system (OS) is software that manages the computer hardware as well as providing an environment for application programs to run. An operating system is an interface between a computer and user. It provides either Graphical User Interface or Command Line Interface.
  • 2. Types of Operating Systems 1. Real-time Operating System: It is a multitasking operating system that aims at executing real-time applications. They either have an event-driven or a time-sharing design. An event-driven system switches between tasks based of their priorities while time-sharing operating systems switch tasks based on clock interrupts. They have well defined, fixed-time constraints. 2. Distributed Operating System: An operating system that manages a group of independent computers that are networked to provide the users with access to the various resources that the system maintains and makes them appear to be a single computer is known as a distributed operating system. 3. Embedded System: This operating systems are designed for being used in embedded computer systems. They are designed to operate on small machines like PDAs with less autonomy. They are able to operate with a limited number of resources. They are very compact and extremely efficient by design. Eg. Windows CE and Minix 3.
  • 3. Multi-user Operating Systems: These systems allow a multiple users to access a computer system concurrently. Access is provided on a time sharing basis. Multi-tasking Operating Systems(Time-sharing): It allows the execution of multiple tasks at one time. Pre-emptive multitasking- slices the CPU time and dedicates one slot to each of the programs. Eg. LINUX and Solaris. Cooperative multitasking- is achieved by relying on each process to give time to the other processes in a defined manner. Eg. MS Windows. Multi-programming: Residing of more than one processes in main memory in order to increase CPU utilization. Multi-processing System: Two or more processors in close communication sharing some computer resources. It is used to increase throughput and reliability. It is more economical. Dual Mode Operation- Kernel mode: Execution of tasks related to operating system. User Mode: Execution of user applications and other user related tasks.
  • 4. Kernel – basic component of OS The Kernelis the central component of operating system. It is a bridge between applications and the actual data processing done at the hardware level. The kernel's responsibilities include managing the system's resources through inter-process communication mechanisms and system calls. The basic facility provided by kernel include resources such as:- The Central Processing Unit. This is the most central part of a computer system, responsible for running or executing programs on it. The kernel takes responsibility for deciding at any time which of the many running programs should be allocated to the processor or processors (each of which can usually run only one program at a time). The computer's memory. Memory is used to store both program instructions and data. Typically, both need to be present in memory in order for a program to execute. The kernel is responsible for deciding which memory each process can use, and determining what to do when not enough is available. Any Input/Output (I/O) devices present in the computer, such as keyboard, mouse, disk drives, printers, displays, etc. The kernel allocates requests from applications to perform I/O to an appropriate device and provides convenient methods for using the device.
  • 5. Monolithic kernels : In a monolithic kernel, all OS services run along with the main kernel thread, thus also residing in the same memory area. This approach provides rich and powerful hardware access. It is "easier to implement a monolithic kernel" than microkernels. The main disadvantages of monolithic kernels are the dependencies between system components - a bug in a device driver might crash the entire system and the fact that large kernels can become very difficult to maintain. Microkernels : The microkernel approach consists of defining a simple abstraction over the hardware, with a set of primitives or system calls to implement minimal OS services such as memory management, multitasking, and inter-process communication. Other services, including those normally provided by the kernel, such as networking, are implemented in user-space programs, referred to as servers. Microkernels are easier to maintain than monolithic kernels, but the large number of system calls and context switches might slow down the system because they typically generate more overhead than plain function calls. A microkernel allows the implementation of the remaining part of the operating system as a normal application program written in a high-level language, and the use of different operating systems on top of the same unchanged kernel.It is also possible to dynamically switch among operating systems and to have more than one active simultaneously.
  • 6.
  • 7. Running- Instructions are being executed.
  • 8. Waiting- The process is waiting for some event to occur.
  • 9. Ready- The process is waiting to be assigned to a processor.
  • 10. Terminated- The process has finished execution.Process Control Block- contains all information associated with a specific process like process state, program counter, CPU registers and info regarding CPU scheduling algorithms, memory, I/O and accounting.
  • 11. Multithreaded process- Thread is a light-weight process within a process defining flow of control. A multithreaded process contains several different flows of control within the same address space. The benefits of multithreading include increased responsiveness to user, resource sharing, economy and ability to take advantage of multiprocessor architectures. Schedulers are mainly of three types: Long-term schedulers: Select the process that contend for the CPU from the job pool. Middle-term schedulers: It schedules swapping in and out of processes from main memory which are partially executed. Short-term Schedulers: Select among the processes which are ready to execute and allocates CPU to one of them.
  • 12. Process Scheduling Algorithms First-Come, First-Served Scheduling: The process that requests the CPU first is allocated first. Shortest Job First Scheduling: On CPU availabililty, the next smallest CPU burst process is allocated. Priority Scheduling: Each process is associated with priorities. Process with highest priority is allocated to the CPU. Round-Robin Scheduling: Similar to FCFS but on time sharing basis. Each process executes for a fixed time slot in a circular queue. Multilevel Queue Scheduling: Priority queues are defined for every process like system processes, interactive processes, interactive editing processes, batch processes and student processes.
  • 13. Deadlocks- A deadlock state occurs when two or more processes are waiting indefinitely for an event that can be caused only one by one of the waiting processes. A deadlock occurs if four necessary conditions occur simultaneously i.e. Mutual exclusion, Hold and Wait, No preemption and Circular Wait. Prevention: Ensure that one of the necessary conditions never holds. Avoidance: Employ protocol and algorithms to avoid deadlocks. Detection: First detect the occurrence of deadlock and then employ some recovery scheme. There are three principal methods for dealing deadlocks: 1. Use some protocol to prevent or avoid deadlocks, ensuring that the system will never enter a deadlock state. 2. Allow the system to enter a deadlock state, detect it, and then recover. 3. Ignore the problem altogether and pretend that deadlocks never occur in the system.
  • 14. Memory Management Paging & Segmentation- memory management schemes that permits the physical address space of a process to be noncontiguous. It involves breaking physical memory into fixed-sized blocks called frames and breaking logical memory into blocks of the same size called pages. When a process is to be executed, its pages are loaded into any available memory frames from the backing store. A process can be swapped temporarily out of memory to a backing store and then brought back into memory for continued execution is Swapping. Swapping policy is used for priority based scheduling algorithms. Pages need register(Page Table Base Register) and cache(Translation Look-aside buffer). Segmentation- is for user view of memory management as it supports logical address space segments in contrast to physical address space of paging technique.
  • 15. Virtual Memory- is a technique that enables us to map a large logical address space onto a smaller physical memory and is implemented by demand paging. Demand Paging- loading of pages only when they are needed. Access to a page marked invalid causes a pafe fault. Rather than swapping whole process into memory only required pages are swapped. This is done by various page replacement methods:- a)First In First Out-Oldest page is replaced by new one. b)Optimal Page Replacement- Replace the page that will not be used for the longest period of time. c) Least Recently Used Page Replacement- Replace the page that has not been used for the longest period of time. Thrashing- high paging activity ie process spends more time paging than executing. This is resolved by using working-set model. The working set is the set of pages in current locality and provides enough frames to process to avoid thrashing.
  • 16. Storage Management File System & Allocation methods File is a sequence of logical records which are required to be mapped onto physical storage devices. Organised into directories for ease of use. Various Directory Structures:-Single-level, Two-level, Tree-Structured, Acyclic-Graph and General Graph Directories. Various file allocation methods on disks:- a) Contiguous allocation- file occupy a set of contiguous blocks on the disk. It can suffer from external fragmentation. b) Linked allocation- each file is a linked list of disk blocks. It can be used only for sequential-access files, inefficient to support direct-access capability. c) Indexed allocation- each file has its own index block, which is an array of disk-block addresses. It may require substantial overhead for its index block
  • 17. Secondary storage- additional disk space for improvement in design through strategies for disk-queue ordering such as SCAN, LOOK, C-SCAN & C-LOOK algorithms Input-Output System- The basic hardware elements involved in I/O are buses, device controllers and the devices themselves. The kernel module that controls a device is a device driver. The kernel’s I/O subsystem provides numerous services. Among these are I/O scheduling, buffering, caching, spooling, device reservation, and error handling.
  • 18. Protection & Security Protection mechanisms control access to a system by limiting the types of file access permitted to users. In addition, protection must ensure that only processes that have gained proper authorization from the operating system can operate on memory segments, the CPU, and other resources. Protection is provided by a mechanism that controls the access of programs, processes, or users to the resources defined by a computer system. This mechanism must provide a means for specifying the controls to be imposed, together with a means of enforcing them. Security ensures the authentication of system users to protect the integrityof the information stored in the system( both data and code), as well as the physical resources of the computer system. The security system prevents unauthorized access, malicious destruction or alteration of data, and accidental introduction of inconsistency. Methods of preventing or detecting security incidents include intrusion detection systems, antivirus software, auditing and logging of system events, monitoring of system software changes, system call monitoring, and firewalls.
  • 19. Linux Modern, free operating system based on UNIX standards. Designed to run efficiently and reliably on common PC hardware Provides a programming and user interface compatible with standard UNIX systems and can run a large number of UNIX applications. Multiuser system, providing protection between processes according to a time-sharing scheduler. High performance due to monolithic kernel, and allows most drivers to be dynamically loaded and unloaded at run time. Hierarchical directory tree file system that obeys UNIX semantics. Supports Device-oriented, networked, and virtual file systems. The memory-management system uses page sharing and copy-on-write to minimize the duplication of data shared by different processes. Uses Least Frequent Used(LFU) algorithm.
  • 20. Windows XP Designed by Microsoft. Windows XP is an extensible & portable OS. Supports multiple operating environments and symmetric multiprocessing, including both 32-bit and 64-bit processors and NUMA computers. It provides virtual memory, integrated caching, and preemptive scheduling. Windows XP supports a security model stronger than those of previous Microsoft operating systems and internationalization features. Windows runs on a variety of computers, so users can choose and upgrade hardware to match their budgets and performance requirements without needing to alter the applications they run.