SlideShare ist ein Scribd-Unternehmen logo
1 von 39
Downloaden Sie, um offline zu lesen
Presented by – Nitish Jadia
Operating System Concepts
 A program that acts as an intermediary
between a user of a computer and the
computer hardware
 Operating system goals:
◦ Execute user programs and make solving user
problems easier
◦ Make the computer system convenient to use
◦ Use the computer hardware in an efficient manner
 Computer system can be divided into four
components:
◦ Hardware – provides basic computing resources
 CPU, memory, I/O devices
◦ Operating system
 Controls and coordinates use of hardware among various
applications and users
◦ Application programs – define the ways in which the
system resources are used to solve the computing
problems of the users
 Word processors, compilers, web browsers, database
systems, video games
◦ Users
 People, machines, other computers
 I/O devices and the CPU can execute
concurrently
 Each device controller is in charge of a
particular device type
 Each device controller has a local buffer
 CPU moves data from/to main memory
to/from local buffers
 I/O is from the device to local buffer of
controller
 Device controller informs CPU that it has
finished its operation by causing an interrupt
 Most systems use a single general-purpose
processor
◦ Most systems have special-purpose processors as well
 Multiprocessors systems growing in use and
importance
◦ Also known as parallel systems, tightly-coupled systems
◦ Advantages include:
1. Increased throughput
2. Economy of scale
3. Increased reliability – graceful degradation or fault
tolerance
 Multi-chip and Multicore
 Systems containing all chips
◦ Chassis containing multiple separate systems
 Like multiprocessor systems, but multiple
systems working together
◦ Usually sharing storage via a storage-area network (SAN)
◦ Provides a high-availability service which survives
failures
 Asymmetric clustering has one machine in hot-standby
mode
 Symmetric clustering has multiple nodes running
applications, monitoring each other
◦ Some clusters are for high-performance computing
(HPC)
 Applications must be written to use parallelization
◦ Some have distributed lock manager (DLM) to avoid
conflicting operations
 Multiprogramming (Batch system) needed for efficiency
 Single user cannot keep CPU and I/O devices busy at all times
 Multiprogramming organizes jobs (code and data) so CPU always has one to execute
 A subset of total jobs in system is kept in memory
 One job selected and run via job scheduling
 When it has to wait (for I/O for example), OS switches to another job
 Timesharing (multitasking) is logical extension in which CPU switches jobs so
frequently that users can interact with each job while it is running, creating interactive
computing
 Response time should be < 1 second
 Each user has at least one program executing in memory process
 If several jobs ready to run at the same time  CPU scheduling
 If processes don’t fit in memory, swapping moves them in and out to run
 Virtual memory allows execution of processes not completely in memory
 Interrupt transfers control to the interrupt
service routine generally, through the
interrupt vector, which contains the
addresses of all the service routines
 Interrupt architecture must save the address
of the interrupted instruction
 A trap or exception is a software-generated
interrupt caused either by an error or a user
request
 An operating system is interrupt driven
 Programming interface to the services
provided by the OS
 Typically written in a high-level language (C
or C++)
 Mostly accessed by programs via a high-level
Application Programming Interface (API)
rather than direct system call use
 Three most common APIs are Win32 API for
Windows, POSIX API for POSIX-based systems
(including virtually all versions of UNIX, Linux,
and Mac OS X), and Java API for the Java
virtual machine (JVM)
 System call sequence to copy the contents of one file to
another file
 Typically, a number associated with each system
call
◦ System-call interface maintains a table indexed
according to these numbers
 The system call interface invokes the intended
system call in OS kernel and returns status of the
system call and any return values
 The caller need know nothing about how the
system call is implemented
◦ Just needs to obey API and understand what OS will do
as a result call
◦ Most details of OS interface hidden from programmer
by API
 Managed by run-time support library (set of functions built
into libraries included with compiler)
 Process control
◦ create process, terminate process
◦ end, abort
◦ load, execute
◦ get process attributes, set process attributes
◦ wait for time
◦ wait event, signal event
◦ allocate and free memory
◦ Dump memory if error
◦ Debugger for determining bugs, single step execution
◦ Locks for managing access to shared data between
processes
 File management
◦ create file, delete file
◦ open, close file
◦ read, write, reposition
◦ get and set file attributes
 Device management
◦ request device, release device
◦ read, write, reposition
◦ get device attributes, set device attributes
◦ logically attach or detach devices
 C program invoking printf() library call, which calls write()
system call
 Interrupt driven (hardware and software)
◦ Hardware interrupt by one of the devices
◦ Software interrupt (exception or trap):
 Software error (e.g., division by zero)
 Request for operating system service
 Other process problems include infinite loop,
processes modifying each other or the operating
system
 Dual-mode operation allows OS to protect
itself and other system components
◦ User mode and kernel mode
◦ Mode bit provided by hardware
 Provides ability to distinguish when system is running
user code or kernel code
 Some instructions designated as privileged, only
executable in kernel mode
 System call changes mode to kernel, return from call
resets it to user
 Increasingly CPUs support multi-mode
operations
◦ i.e. virtual machine manager (VMM) mode for guest
VMs
 Timer to prevent infinite loop / process hogging resources
◦ Timer is set to interrupt the computer after some time period
◦ Keep a counter that is decremented by the physical clock.
◦ Operating system set the counter (privileged instruction)
◦ When counter zero generate an interrupt
◦ Set up before scheduling process to regain control or terminate
program that exceeds allotted time
 General-purpose OS is very large program
 Various ways to structure ones
◦ Simple structure – MS-DOS
◦ More complex -- UNIX
◦ Layered – an abstrcation
◦ Microkernel -Mach
 MS-DOS – written to
provide the most
functionality in the
least space
◦ Not divided into modules
◦ Although MS-DOS has
some structure, its
interfaces and levels of
functionality are not well
separated
UNIX – limited by hardware functionality, the
original UNIX operating system had limited
structuring. The UNIX OS consists of two
separable parts
◦ Systems programs
◦ The kernel
 Consists of everything below the system-call interface
and above the physical hardware
 Provides the file system, CPU scheduling, memory
management, and other operating-system functions; a
large number of functions for one level
 Beyond simple but not fully layered
 The operating system is
divided into a number of
layers (levels), each built
on top of lower layers.
The bottom layer (layer
0), is the hardware; the
highest (layer N) is the
user interface.
 With modularity, layers
are selected such that
each uses functions
(operations) and services
of only lower-level layers
 Moves as much from the kernel into user space
 Mach example of microkernel
◦ Mac OS X kernel (Darwin) partly based on Mach
 Communication takes place between user
modules using message passing
 Benefits:
◦ Easier to extend a microkernel
◦ Easier to port the operating system to new architectures
◦ More reliable (less code is running in kernel mode)
◦ More secure
 Detriments:
◦ Performance overhead of user space to kernel space
communication
Application
Program
File
System
Device
Driver
Interprocess
Communication
memory
managment
CPU
scheduling
messagesmessages
microkernel
hardware
user
mode
kernel
mode
 Many modern operating systems implement
loadable kernel modules
◦ Uses object-oriented approach
◦ Each core component is separate
◦ Each talks to the others over known interfaces
◦ Each is loadable as needed within the kernel
 Overall, similar to layers but with more
flexible
◦ Linux, Solaris, etc
 Most modern operating systems are actually not
one pure model
◦ Hybrid combines multiple approaches to address
performance, security, usability needs
◦ Linux and Solaris kernels in kernel address space, so
monolithic, plus modular for dynamic loading of
functionality
◦ Windows mostly monolithic, plus microkernel for
different subsystem personalities
 Apple Mac OS X hybrid, layered, Aqua UI plus
Cocoa programming environment
◦ Below is kernel consisting of Mach microkernel and BSD
Unix parts, plus I/O kit and dynamically loadable
modules (called kernel extensions)
 bootstrap program is loaded at power-up or
reboot
◦ Typically stored in ROM or EPROM, generally known
as firmware
◦ Initializes all aspects of system
◦ Loads operating system kernel and starts execution
 When power initialized on system, execution starts at
a fixed memory location
◦ Firmware ROM used to hold initial boot code
 Operating system must be made available to
hardware so hardware can start it
◦ Small piece of code – bootstrap loader, stored in ROM or
EEPROM locates the kernel, loads it into memory, and starts
it
◦ Sometimes two-step process where boot block at fixed
location loaded by ROM code, which loads bootstrap loader
from disk
 Common bootstrap loader, GRUB, allows selection of
kernel from multiple disks, versions, kernel options
 Kernel loads and system is then running
 Operating system concepts by Silberschatz
Galvin Gagne
Operating System Concepts Presentation

Weitere ähnliche Inhalte

Was ist angesagt?

introduction To Operating System
introduction To Operating Systemintroduction To Operating System
introduction To Operating System
Luka M G
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating system
tittuajay
 

Was ist angesagt? (20)

Operating system concepts
Operating system conceptsOperating system concepts
Operating system concepts
 
What is Kernel, basic idea of kernel
What is Kernel, basic idea of kernelWhat is Kernel, basic idea of kernel
What is Kernel, basic idea of kernel
 
Architecture Of The Linux Kernel
Architecture Of The Linux KernelArchitecture Of The Linux Kernel
Architecture Of The Linux Kernel
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Kernel. Operating System
Kernel. Operating SystemKernel. Operating System
Kernel. Operating System
 
introduction To Operating System
introduction To Operating Systemintroduction To Operating System
introduction To Operating System
 
Power optimization for Android apps
Power optimization for Android appsPower optimization for Android apps
Power optimization for Android apps
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
 
Operating Systems - "Chapter 4: Multithreaded Programming"
Operating Systems - "Chapter 4:  Multithreaded Programming"Operating Systems - "Chapter 4:  Multithreaded Programming"
Operating Systems - "Chapter 4: Multithreaded Programming"
 
Basic Linux Internals
Basic Linux InternalsBasic Linux Internals
Basic Linux Internals
 
system software and application software, compiler, interpreter & assembler
system software  and application software, compiler, interpreter & assemblersystem software  and application software, compiler, interpreter & assembler
system software and application software, compiler, interpreter & assembler
 
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
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating system
 
Operating system kernal
Operating system kernalOperating system kernal
Operating system kernal
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file system
 
Operating System.pdf
Operating System.pdfOperating System.pdf
Operating System.pdf
 
Linux Operating System
Linux Operating SystemLinux Operating System
Linux Operating System
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
Cs8493 unit 2
Cs8493 unit 2Cs8493 unit 2
Cs8493 unit 2
 
OS Process and Thread Concepts
OS Process and Thread ConceptsOS Process and Thread Concepts
OS Process and Thread Concepts
 

Andere mochten auch

Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its function
Nikhi Jain
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)
Vaibhav Bajaj
 
Slides For Operating System Concepts By Silberschatz Galvin And Gagne
Slides For Operating System Concepts By Silberschatz Galvin And GagneSlides For Operating System Concepts By Silberschatz Galvin And Gagne
Slides For Operating System Concepts By Silberschatz Galvin And Gagne
sarankumar4445
 
Advance Operating Systems
Advance Operating SystemsAdvance Operating Systems
Advance Operating Systems
Raghu nath
 

Andere mochten auch (20)

Operating system Concepts
Operating system Concepts Operating system Concepts
Operating system Concepts
 
Operating system overview concepts ppt
Operating system overview concepts pptOperating system overview concepts ppt
Operating system overview concepts ppt
 
Operating System - Unit I - Operating System Structures
Operating System - Unit I - Operating System StructuresOperating System - Unit I - Operating System Structures
Operating System - Unit I - Operating System Structures
 
Principles of operating system
Principles of operating systemPrinciples of operating system
Principles of operating system
 
Operating system concepts
Operating system conceptsOperating system concepts
Operating system concepts
 
Real Time Operating System Concepts
Real Time Operating System ConceptsReal Time Operating System Concepts
Real Time Operating System Concepts
 
Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its function
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)
 
SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...
SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...
SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...
 
Slides For Operating System Concepts By Silberschatz Galvin And Gagne
Slides For Operating System Concepts By Silberschatz Galvin And GagneSlides For Operating System Concepts By Silberschatz Galvin And Gagne
Slides For Operating System Concepts By Silberschatz Galvin And Gagne
 
Advance Operating Systems
Advance Operating SystemsAdvance Operating Systems
Advance Operating Systems
 
C2-4-Putchala
C2-4-PutchalaC2-4-Putchala
C2-4-Putchala
 
Code4vn linux day1 operating system concept
Code4vn linux day1 operating system conceptCode4vn linux day1 operating system concept
Code4vn linux day1 operating system concept
 
Seminar on mobile os
Seminar on mobile osSeminar on mobile os
Seminar on mobile os
 
Chapter 12
Chapter 12Chapter 12
Chapter 12
 
Tizen operating system seminar ppt
Tizen operating system seminar pptTizen operating system seminar ppt
Tizen operating system seminar ppt
 
Semaphores OS Basics
Semaphores OS BasicsSemaphores OS Basics
Semaphores OS Basics
 
Advanced Operating System- Introduction
Advanced Operating System- IntroductionAdvanced Operating System- Introduction
Advanced Operating System- Introduction
 
Operating system critical section
Operating system   critical sectionOperating system   critical section
Operating system critical section
 
Semaphores
SemaphoresSemaphores
Semaphores
 

Ähnlich wie Operating System Concepts Presentation

operatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptxoperatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptx
krishnajoshi70
 
OS - Ch1
OS - Ch1OS - Ch1
OS - Ch1
sphs
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - Introduction
Wayne Jones Jnr
 
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
sphs
 
operating system over view.ppt operating sysyems
operating system over view.ppt operating sysyemsoperating system over view.ppt operating sysyems
operating system over view.ppt operating sysyems
JyoReddy9
 

Ähnlich wie Operating System Concepts Presentation (20)

OS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptxOS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptx
 
OS Services, System call, Virtual Machine
OS Services, System call, Virtual MachineOS Services, System call, Virtual Machine
OS Services, System call, Virtual Machine
 
Ch1
Ch1Ch1
Ch1
 
Operating System concepts
Operating System conceptsOperating System concepts
Operating System concepts
 
Operating system
Operating systemOperating system
Operating system
 
Lecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionLecture_01 Operating System Course Introduction
Lecture_01 Operating System Course Introduction
 
operatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptxoperatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptx
 
Operating-System Structures
Operating-System StructuresOperating-System Structures
Operating-System Structures
 
Operating system notes ch1
Operating system notes ch1Operating system notes ch1
Operating system notes ch1
 
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
 
Operating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESOperating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTES
 
lecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categorieslecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categories
 
Unit I OS CS.ppt
Unit I OS CS.pptUnit I OS CS.ppt
Unit I OS CS.ppt
 
Nt introduction(os)
Nt introduction(os)Nt introduction(os)
Nt introduction(os)
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptx
 
Operating System 2
Operating System 2Operating System 2
Operating System 2
 
operating system over view.ppt operating sysyems
operating system over view.ppt operating sysyemsoperating system over view.ppt operating sysyems
operating system over view.ppt operating sysyems
 
Basics of Operating System
Basics of Operating SystemBasics of Operating System
Basics of Operating System
 

Kürzlich hochgeladen

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 

Kürzlich hochgeladen (20)

Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 

Operating System Concepts Presentation

  • 1. Presented by – Nitish Jadia Operating System Concepts
  • 2.  A program that acts as an intermediary between a user of a computer and the computer hardware  Operating system goals: ◦ Execute user programs and make solving user problems easier ◦ Make the computer system convenient to use ◦ Use the computer hardware in an efficient manner
  • 3.  Computer system can be divided into four components: ◦ Hardware – provides basic computing resources  CPU, memory, I/O devices ◦ Operating system  Controls and coordinates use of hardware among various applications and users ◦ Application programs – define the ways in which the system resources are used to solve the computing problems of the users  Word processors, compilers, web browsers, database systems, video games ◦ Users  People, machines, other computers
  • 4.
  • 5.  I/O devices and the CPU can execute concurrently  Each device controller is in charge of a particular device type  Each device controller has a local buffer  CPU moves data from/to main memory to/from local buffers  I/O is from the device to local buffer of controller  Device controller informs CPU that it has finished its operation by causing an interrupt
  • 6.
  • 7.  Most systems use a single general-purpose processor ◦ Most systems have special-purpose processors as well  Multiprocessors systems growing in use and importance ◦ Also known as parallel systems, tightly-coupled systems ◦ Advantages include: 1. Increased throughput 2. Economy of scale 3. Increased reliability – graceful degradation or fault tolerance
  • 8.  Multi-chip and Multicore  Systems containing all chips ◦ Chassis containing multiple separate systems
  • 9.  Like multiprocessor systems, but multiple systems working together ◦ Usually sharing storage via a storage-area network (SAN) ◦ Provides a high-availability service which survives failures  Asymmetric clustering has one machine in hot-standby mode  Symmetric clustering has multiple nodes running applications, monitoring each other ◦ Some clusters are for high-performance computing (HPC)  Applications must be written to use parallelization ◦ Some have distributed lock manager (DLM) to avoid conflicting operations
  • 10.
  • 11.  Multiprogramming (Batch system) needed for efficiency  Single user cannot keep CPU and I/O devices busy at all times  Multiprogramming organizes jobs (code and data) so CPU always has one to execute  A subset of total jobs in system is kept in memory  One job selected and run via job scheduling  When it has to wait (for I/O for example), OS switches to another job  Timesharing (multitasking) is logical extension in which CPU switches jobs so frequently that users can interact with each job while it is running, creating interactive computing  Response time should be < 1 second  Each user has at least one program executing in memory process  If several jobs ready to run at the same time  CPU scheduling  If processes don’t fit in memory, swapping moves them in and out to run  Virtual memory allows execution of processes not completely in memory
  • 12.
  • 13.  Interrupt transfers control to the interrupt service routine generally, through the interrupt vector, which contains the addresses of all the service routines  Interrupt architecture must save the address of the interrupted instruction  A trap or exception is a software-generated interrupt caused either by an error or a user request  An operating system is interrupt driven
  • 14.
  • 15.  Programming interface to the services provided by the OS  Typically written in a high-level language (C or C++)  Mostly accessed by programs via a high-level Application Programming Interface (API) rather than direct system call use  Three most common APIs are Win32 API for Windows, POSIX API for POSIX-based systems (including virtually all versions of UNIX, Linux, and Mac OS X), and Java API for the Java virtual machine (JVM)
  • 16.  System call sequence to copy the contents of one file to another file
  • 17.  Typically, a number associated with each system call ◦ System-call interface maintains a table indexed according to these numbers  The system call interface invokes the intended system call in OS kernel and returns status of the system call and any return values  The caller need know nothing about how the system call is implemented ◦ Just needs to obey API and understand what OS will do as a result call ◦ Most details of OS interface hidden from programmer by API  Managed by run-time support library (set of functions built into libraries included with compiler)
  • 18.
  • 19.  Process control ◦ create process, terminate process ◦ end, abort ◦ load, execute ◦ get process attributes, set process attributes ◦ wait for time ◦ wait event, signal event ◦ allocate and free memory ◦ Dump memory if error ◦ Debugger for determining bugs, single step execution ◦ Locks for managing access to shared data between processes
  • 20.  File management ◦ create file, delete file ◦ open, close file ◦ read, write, reposition ◦ get and set file attributes  Device management ◦ request device, release device ◦ read, write, reposition ◦ get device attributes, set device attributes ◦ logically attach or detach devices
  • 21.
  • 22.  C program invoking printf() library call, which calls write() system call
  • 23.  Interrupt driven (hardware and software) ◦ Hardware interrupt by one of the devices ◦ Software interrupt (exception or trap):  Software error (e.g., division by zero)  Request for operating system service  Other process problems include infinite loop, processes modifying each other or the operating system
  • 24.  Dual-mode operation allows OS to protect itself and other system components ◦ User mode and kernel mode ◦ Mode bit provided by hardware  Provides ability to distinguish when system is running user code or kernel code  Some instructions designated as privileged, only executable in kernel mode  System call changes mode to kernel, return from call resets it to user  Increasingly CPUs support multi-mode operations ◦ i.e. virtual machine manager (VMM) mode for guest VMs
  • 25.  Timer to prevent infinite loop / process hogging resources ◦ Timer is set to interrupt the computer after some time period ◦ Keep a counter that is decremented by the physical clock. ◦ Operating system set the counter (privileged instruction) ◦ When counter zero generate an interrupt ◦ Set up before scheduling process to regain control or terminate program that exceeds allotted time
  • 26.  General-purpose OS is very large program  Various ways to structure ones ◦ Simple structure – MS-DOS ◦ More complex -- UNIX ◦ Layered – an abstrcation ◦ Microkernel -Mach
  • 27.  MS-DOS – written to provide the most functionality in the least space ◦ Not divided into modules ◦ Although MS-DOS has some structure, its interfaces and levels of functionality are not well separated
  • 28. UNIX – limited by hardware functionality, the original UNIX operating system had limited structuring. The UNIX OS consists of two separable parts ◦ Systems programs ◦ The kernel  Consists of everything below the system-call interface and above the physical hardware  Provides the file system, CPU scheduling, memory management, and other operating-system functions; a large number of functions for one level
  • 29.  Beyond simple but not fully layered
  • 30.  The operating system is divided into a number of layers (levels), each built on top of lower layers. The bottom layer (layer 0), is the hardware; the highest (layer N) is the user interface.  With modularity, layers are selected such that each uses functions (operations) and services of only lower-level layers
  • 31.  Moves as much from the kernel into user space  Mach example of microkernel ◦ Mac OS X kernel (Darwin) partly based on Mach  Communication takes place between user modules using message passing  Benefits: ◦ Easier to extend a microkernel ◦ Easier to port the operating system to new architectures ◦ More reliable (less code is running in kernel mode) ◦ More secure  Detriments: ◦ Performance overhead of user space to kernel space communication
  • 33.  Many modern operating systems implement loadable kernel modules ◦ Uses object-oriented approach ◦ Each core component is separate ◦ Each talks to the others over known interfaces ◦ Each is loadable as needed within the kernel  Overall, similar to layers but with more flexible ◦ Linux, Solaris, etc
  • 34.
  • 35.  Most modern operating systems are actually not one pure model ◦ Hybrid combines multiple approaches to address performance, security, usability needs ◦ Linux and Solaris kernels in kernel address space, so monolithic, plus modular for dynamic loading of functionality ◦ Windows mostly monolithic, plus microkernel for different subsystem personalities  Apple Mac OS X hybrid, layered, Aqua UI plus Cocoa programming environment ◦ Below is kernel consisting of Mach microkernel and BSD Unix parts, plus I/O kit and dynamically loadable modules (called kernel extensions)
  • 36.  bootstrap program is loaded at power-up or reboot ◦ Typically stored in ROM or EPROM, generally known as firmware ◦ Initializes all aspects of system ◦ Loads operating system kernel and starts execution
  • 37.  When power initialized on system, execution starts at a fixed memory location ◦ Firmware ROM used to hold initial boot code  Operating system must be made available to hardware so hardware can start it ◦ Small piece of code – bootstrap loader, stored in ROM or EEPROM locates the kernel, loads it into memory, and starts it ◦ Sometimes two-step process where boot block at fixed location loaded by ROM code, which loads bootstrap loader from disk  Common bootstrap loader, GRUB, allows selection of kernel from multiple disks, versions, kernel options  Kernel loads and system is then running
  • 38.  Operating system concepts by Silberschatz Galvin Gagne