SlideShare a Scribd company logo
1 of 31
OPERATING
SYSTEMS




            1
CONTENTS

   1.   What is an Operating System?
   2.   OS Functions
   3.   OS Services
   4.   Structure of OS
   5.   Evolution of OS




                                       2
SOFTWARE
CLASSIFICATION




                 3
WHAT IS OS?
It is the software that enables all the programs we use.

The OS organizes and controls the hardware (CPU, RAM,
I/O)

Security

System interface

Application interface

OS acts as an interface between the application programs
and the machine hardware.




                                                           4
Operating System Software
Examples: Microsoft Windows, Linux, Unix, Mac OS X, iOS, Android.




                                                                5
What is an operating system (OS)?




                                    6
OS FUNCTIONS
The main functions of operating systems are:

     •   Manages and Interacts with Computer Hardware
     •   Process the tasks
     •   Provides the User/ Computer Interface (CLI / GUI)
     •   Provides the Interface for Application Software
     •   Input / Output Operations
     •   Error Detection, Resource Allocation, Security and
         Protection




                                                              7
OS SERVICES
Operating system services such as,


      • Input / Output Operations ,Controlling and Allocating
        memory,
      • Work as a Resource Allocator ,Prioritizing system
        requests, File System Manipulation, Error Detection,
      • Controlling input and output devices, Communication
      • Managing file systems, protection
      • CPUs have this capability to use at least two modes:
        protected mode and supervisor mode.




                                                                8
Manages the CPU
       - by CPU scheduling
         algorithms.
Manages RAM
       - What is processing in RAM
       - Virtual memory.
Provides the Interface for
Application Software
       -Operating systems are
        designed and developed for
        a specific CPU or “family of
        CPUs”




                                       9
Provides the interface for
   storage devices and manages
   how data is stored on those
   devices.




Provides the Interface for
   I/O Devices
  • device drivers
  • keyboard, mouse, printer




                                 10
VIRTUAL MEMORY




Virtual Memory (VM) = the ability of the CPU and the operating
system software to use the hard disk drive as additional RAM when
needed.
Good – no longer get “insufficient memory” error.
Bad - performance is very slow when accessing VM.
Solution = increase size of RAM.




                                                                    11
VIRTUAL MEMORY




                 12
PROCESSES
Scheduler – Maintains a record of
the processes.
  • Adds new processes when
    launched.
  • Removes old processes when
    completed.
  • Uses a process table.
Process Table – Information
about each process including:
  • Main memory cells (RAM)
  • Priority
  • Running or waiting (input from
    user or saving to disk)




                                     13
Viewing processes with Microsoft Windows
Ending a process – Killing the process




                                           14
PROCESSES
Dispatcher - Oversees the
execution of each process by the
CPU.
  • Gives each process a time slice
    of CPU time.
  • Changes between processes.




                                      15
MULTIPROCESSING WITH MULTIPLE
           CPU’S
    Asymmetric Multiprocessing = Tasks are assigned to a specific
    CPU and each CPU has its own RAM memory
    Symmetric Multiprocessing = Tasks are assigned to any
    available CPU and CPU’s can share RAM memory




                                                                    16
Rick Graziani graziani@cabrillo.edu
                                      16
STRUCTURE OF OPERATING
SYSTEM:

          Application Programs

            System Programs

        Software (Operating System)

              HARDWARE




                                      17
STRUCTURE OF OPERATING SYSTEM

The structure of OS consists of 4 layers:
         1. Hardware
            Hardware consists of CPU, Main
            memory, I/O Devices, etc,

         2. Software (Operating System)
            Software includes process management
            routines, memory management routines,
            I/O control routines, file management
            routines.




                                                    18
STRUCTURE OF OPERATING SYSTEM


     3. System programs
        This layer consists of compilers, Assemblers,
        linker etc.

     4. Application programs
        This is dependent on users need. Ex. Railway
        reservation system, Bank database
        management etc.,




                                                        19
EVOLUTION OF OS:
Evolution of an OS from simple Batch processing to today’s
OS-
  •   Batch Operating System
  •   Multiprogramming Operating System
  •   Time Sharing or Multitasking Operating System
  •   Real-Time Systems
  •   Distributed Operating System




                                                             20
BATCH PROCESSING:
• In Batch processing same type of jobs batch (BATCH- a
  set of jobs with similar needs) together and execute at a
  time.
• The OS was simple, its major task was to transfer
  control from one job to the next.
• The job was submitted to the computer operator in form
  of punch cards. At some later time the output appeared.
• The OS was always resident in memory.
• Common Input devices were card readers and tape
  drives.




                                                              21
Common output devices were line printers, tape drives,
and card punches.
Users did not interact directly with the computer
systems, but he prepared a job (comprising of the
program, the data, & some control information).

                     OS


                    User
                    program
                    area




                                                         22
MULTIPROGRAMMING:
• Multiprogramming is a technique to execute number of
  programs simultaneously by a single processor.
• In Multiprogramming, number of processes reside in
  main memory at a time.
• The OS picks and begins to executes one of the jobs in
  the main memory.
• If any I/O wait happened in a process, then CPU
  switches from that job to another job.
• Hence CPU in not idle at any time.




                                                           23
MULTIPROGRAMMING
   OS     • Figuredipicts the layout of
          multiprogramming system.
  Job 1
          • The main memory consists of 5
  Job 2   jobs at a time, the CPU executes
          one by one.
  Job 3
          Advantages:
  Job 4   •Efficient memory utilization

  Job 5   •Throughput increases
          •CPU is never idle, so performance
          increases.
                                  24
TIME SHARING SYSTEMS:

• Time sharing, or multitasking, is a logical extension of
  multiprogramming.
• Multiple jobs are executed by switching the CPU
  between them.
• In this, the CPU time is shared by different processes, so
  it is called as “Time sharing Systems”.
• Time slice is defined by the OS, for sharing CPU time
  between processes.
• Examples: Unix.




                                                               25
PROCESS STATES
FOR TIME SHARING


New Job                    Execution                       Terminated
                Ready                       Running

                          Time Slice over


                                            Wait for I/O
          I/O Completed
                                            Completion


                              Blocked




                                                                        26
REAL-TIME SYSTEMS:
 • A real-time operating system is a multitasking
   operating system intended for applications with
   fixed deadlines.
 • Such applications include some small embedded
   systems, automobile engine controllers, industrial
   robots, spacecraft, industrial control, and some
   large-scale computing systems.
 • An early example of a large-scale real-time
   operating system was Transaction Processing
   Facility developed by American Airlines and
   IBM for the Sabre Airline Reservations System.




                                                        27
These are of two types: a) Hard Real Time,
                       b) Soft Real Time.
a) These OS guarantee that critical tasks be completed
   within a certain range of time.
  Ex: A complete car welding by robot hardly on the time.
a) These OS provides some relaxation in time limit.
  Ex: Multimedia systems, digital audio system.




                                                            28
DISTRIBUTED SYSTEMS:
 • A distributed computer system is a collection of
   autonomous computer systems capable of
   communication and cooperation via their H/w and
   S/w interconnection.
 • The distributed operating system provides a
   illusion to its users that it has a single
   uniprocessor system, although it is actually
   consisted of multiprocessors.
 • Distributed OS provide the means for system-
   wide sharing of resources such as computational
   capacity, files and I/O devices.
 • Ex: UNIX, LINUX.




                                                      29
SUMMAR
                      Y
• HOW AN OS WORKS
    Interpreting commands, enabling the user to
 communicate with the computer.


• OS IS SOFTWARE


• COMPUTER WORKS WITH THE HELP OF OS
        When a computer is turned on it searches for instructions
 in its memory. These instructions tell the computer how to start
 up. Usually, one of the first sets of these instructions is a
 special program called the operating system .




                                                                    30
Thanks




         31

More Related Content

What's hot

Operating system components
Operating system componentsOperating system components
Operating system componentsSyed Zaid Irshad
 
Operating system and its functions
Operating system and its functionsOperating system and its functions
Operating system and its functionsNamarta Chawla
 
operating system
operating systemoperating system
operating systemKadianAman
 
Operating Systems Basics
Operating Systems BasicsOperating Systems Basics
Operating Systems Basicsnishantsri
 
Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1abhinav baba
 
Operating system and its types
Operating system and its types Operating system and its types
Operating system and its types vimal kumar arora
 
introduction To Operating System
introduction To Operating Systemintroduction To Operating System
introduction To Operating SystemLuka M G
 
Types of operating system
Types of operating systemTypes of operating system
Types of operating systemMohammad Alam
 
Operating Systems
Operating SystemsOperating Systems
Operating Systemsvampugani
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OSKumar Pritam
 
Fundamentals of operating system
Fundamentals of operating systemFundamentals of operating system
Fundamentals of operating systemJayesh Chauhan
 
Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its functionNikhi Jain
 
Kernel mode vs user mode in linux
Kernel mode vs user mode in linuxKernel mode vs user mode in linux
Kernel mode vs user mode in linuxSiddique Ibrahim
 
Introduction To Computer Systems
Introduction To Computer SystemsIntroduction To Computer Systems
Introduction To Computer SystemsNaheed Azam
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)Vaibhav Bajaj
 

What's hot (20)

Operating system components
Operating system componentsOperating system components
Operating system components
 
Operating system and its functions
Operating system and its functionsOperating system and its functions
Operating system and its functions
 
operating system
operating systemoperating system
operating system
 
Operating Systems Basics
Operating Systems BasicsOperating Systems Basics
Operating Systems Basics
 
Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1
 
Operating system and its types
Operating system and its types Operating system and its types
Operating system and its types
 
introduction To Operating System
introduction To Operating Systemintroduction To Operating System
introduction To Operating System
 
Types of operating system
Types of operating systemTypes of operating system
Types of operating system
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
Presentation on operating system
 Presentation on operating system Presentation on operating system
Presentation on operating system
 
Fundamentals of operating system
Fundamentals of operating systemFundamentals of operating system
Fundamentals of operating system
 
Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its function
 
Kernel mode vs user mode in linux
Kernel mode vs user mode in linuxKernel mode vs user mode in linux
Kernel mode vs user mode in linux
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Introduction To Computer Systems
Introduction To Computer SystemsIntroduction To Computer Systems
Introduction To Computer Systems
 
Operating system
Operating system Operating system
Operating system
 
Process of operating system
Process of operating systemProcess of operating system
Process of operating system
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)
 

Similar to Introduction to Operating System

Intermediate Operating Systems
Intermediate Operating SystemsIntermediate Operating Systems
Intermediate Operating SystemsJohn Cutajar
 
Introduction to Operating System
Introduction to Operating SystemIntroduction to Operating System
Introduction to Operating SystemAiman Hafeez
 
Introduction of os and types
Introduction of os and typesIntroduction of os and types
Introduction of os and typesPrakash Sir
 
Nt introduction(os)
Nt introduction(os)Nt introduction(os)
Nt introduction(os)NehaTadam
 
Chap1
Chap1Chap1
Chap1adisi
 
Lecture 4.pptx
Lecture 4.pptxLecture 4.pptx
Lecture 4.pptxsara591850
 
Introduction to Operating system CBSE
Introduction to Operating system CBSE Introduction to Operating system CBSE
Introduction to Operating system CBSE PrashantChahal3
 
Chapter one_oS.ppt
Chapter one_oS.pptChapter one_oS.ppt
Chapter one_oS.pptmiki304759
 
Operating System Introduction - Definition, Working, Components
Operating System Introduction - Definition, Working, ComponentsOperating System Introduction - Definition, Working, Components
Operating System Introduction - Definition, Working, ComponentsNithesh Shetty
 
Operating System Unit 1
Operating System Unit 1Operating System Unit 1
Operating System Unit 1SanthiNivas
 
Introduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary MargaratIntroduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary MargaratMary Margarat
 

Similar to Introduction to Operating System (20)

Operating systems
Operating systemsOperating systems
Operating systems
 
Intermediate Operating Systems
Intermediate Operating SystemsIntermediate Operating Systems
Intermediate Operating Systems
 
Operating systems
Operating systemsOperating systems
Operating systems
 
Introduction to Operating System
Introduction to Operating SystemIntroduction to Operating System
Introduction to Operating System
 
unit1 part1.ppt
unit1 part1.pptunit1 part1.ppt
unit1 part1.ppt
 
Introduction of os and types
Introduction of os and typesIntroduction of os and types
Introduction of os and types
 
os_1.pdf
os_1.pdfos_1.pdf
os_1.pdf
 
Nt introduction(os)
Nt introduction(os)Nt introduction(os)
Nt introduction(os)
 
Chap1
Chap1Chap1
Chap1
 
Lecture 4.pptx
Lecture 4.pptxLecture 4.pptx
Lecture 4.pptx
 
Introduction to Operating system CBSE
Introduction to Operating system CBSE Introduction to Operating system CBSE
Introduction to Operating system CBSE
 
Operating system
Operating systemOperating system
Operating system
 
Chapter one_oS.ppt
Chapter one_oS.pptChapter one_oS.ppt
Chapter one_oS.ppt
 
Operating System Introduction - Definition, Working, Components
Operating System Introduction - Definition, Working, ComponentsOperating System Introduction - Definition, Working, Components
Operating System Introduction - Definition, Working, Components
 
Operating System Unit 1
Operating System Unit 1Operating System Unit 1
Operating System Unit 1
 
Operating System Overview.pdf
Operating System Overview.pdfOperating System Overview.pdf
Operating System Overview.pdf
 
Operating systems
Operating systemsOperating systems
Operating systems
 
OS Content.pdf
OS Content.pdfOS Content.pdf
OS Content.pdf
 
Operating System
Operating SystemOperating System
Operating System
 
Introduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary MargaratIntroduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary Margarat
 

Recently uploaded

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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
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
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
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
 
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
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Recently uploaded (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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
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
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
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
 
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 ...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

Introduction to Operating System

  • 2. CONTENTS 1. What is an Operating System? 2. OS Functions 3. OS Services 4. Structure of OS 5. Evolution of OS 2
  • 4. WHAT IS OS? It is the software that enables all the programs we use. The OS organizes and controls the hardware (CPU, RAM, I/O) Security System interface Application interface OS acts as an interface between the application programs and the machine hardware. 4
  • 5. Operating System Software Examples: Microsoft Windows, Linux, Unix, Mac OS X, iOS, Android. 5
  • 6. What is an operating system (OS)? 6
  • 7. OS FUNCTIONS The main functions of operating systems are: • Manages and Interacts with Computer Hardware • Process the tasks • Provides the User/ Computer Interface (CLI / GUI) • Provides the Interface for Application Software • Input / Output Operations • Error Detection, Resource Allocation, Security and Protection 7
  • 8. OS SERVICES Operating system services such as, • Input / Output Operations ,Controlling and Allocating memory, • Work as a Resource Allocator ,Prioritizing system requests, File System Manipulation, Error Detection, • Controlling input and output devices, Communication • Managing file systems, protection • CPUs have this capability to use at least two modes: protected mode and supervisor mode. 8
  • 9. Manages the CPU - by CPU scheduling algorithms. Manages RAM - What is processing in RAM - Virtual memory. Provides the Interface for Application Software -Operating systems are designed and developed for a specific CPU or “family of CPUs” 9
  • 10. Provides the interface for storage devices and manages how data is stored on those devices. Provides the Interface for I/O Devices • device drivers • keyboard, mouse, printer 10
  • 11. VIRTUAL MEMORY Virtual Memory (VM) = the ability of the CPU and the operating system software to use the hard disk drive as additional RAM when needed. Good – no longer get “insufficient memory” error. Bad - performance is very slow when accessing VM. Solution = increase size of RAM. 11
  • 13. PROCESSES Scheduler – Maintains a record of the processes. • Adds new processes when launched. • Removes old processes when completed. • Uses a process table. Process Table – Information about each process including: • Main memory cells (RAM) • Priority • Running or waiting (input from user or saving to disk) 13
  • 14. Viewing processes with Microsoft Windows Ending a process – Killing the process 14
  • 15. PROCESSES Dispatcher - Oversees the execution of each process by the CPU. • Gives each process a time slice of CPU time. • Changes between processes. 15
  • 16. MULTIPROCESSING WITH MULTIPLE CPU’S Asymmetric Multiprocessing = Tasks are assigned to a specific CPU and each CPU has its own RAM memory Symmetric Multiprocessing = Tasks are assigned to any available CPU and CPU’s can share RAM memory 16 Rick Graziani graziani@cabrillo.edu 16
  • 17. STRUCTURE OF OPERATING SYSTEM: Application Programs System Programs Software (Operating System) HARDWARE 17
  • 18. STRUCTURE OF OPERATING SYSTEM The structure of OS consists of 4 layers: 1. Hardware Hardware consists of CPU, Main memory, I/O Devices, etc, 2. Software (Operating System) Software includes process management routines, memory management routines, I/O control routines, file management routines. 18
  • 19. STRUCTURE OF OPERATING SYSTEM 3. System programs This layer consists of compilers, Assemblers, linker etc. 4. Application programs This is dependent on users need. Ex. Railway reservation system, Bank database management etc., 19
  • 20. EVOLUTION OF OS: Evolution of an OS from simple Batch processing to today’s OS- • Batch Operating System • Multiprogramming Operating System • Time Sharing or Multitasking Operating System • Real-Time Systems • Distributed Operating System 20
  • 21. BATCH PROCESSING: • In Batch processing same type of jobs batch (BATCH- a set of jobs with similar needs) together and execute at a time. • The OS was simple, its major task was to transfer control from one job to the next. • The job was submitted to the computer operator in form of punch cards. At some later time the output appeared. • The OS was always resident in memory. • Common Input devices were card readers and tape drives. 21
  • 22. Common output devices were line printers, tape drives, and card punches. Users did not interact directly with the computer systems, but he prepared a job (comprising of the program, the data, & some control information). OS User program area 22
  • 23. MULTIPROGRAMMING: • Multiprogramming is a technique to execute number of programs simultaneously by a single processor. • In Multiprogramming, number of processes reside in main memory at a time. • The OS picks and begins to executes one of the jobs in the main memory. • If any I/O wait happened in a process, then CPU switches from that job to another job. • Hence CPU in not idle at any time. 23
  • 24. MULTIPROGRAMMING OS • Figuredipicts the layout of multiprogramming system. Job 1 • The main memory consists of 5 Job 2 jobs at a time, the CPU executes one by one. Job 3 Advantages: Job 4 •Efficient memory utilization Job 5 •Throughput increases •CPU is never idle, so performance increases. 24
  • 25. TIME SHARING SYSTEMS: • Time sharing, or multitasking, is a logical extension of multiprogramming. • Multiple jobs are executed by switching the CPU between them. • In this, the CPU time is shared by different processes, so it is called as “Time sharing Systems”. • Time slice is defined by the OS, for sharing CPU time between processes. • Examples: Unix. 25
  • 26. PROCESS STATES FOR TIME SHARING New Job Execution Terminated Ready Running Time Slice over Wait for I/O I/O Completed Completion Blocked 26
  • 27. REAL-TIME SYSTEMS: • A real-time operating system is a multitasking operating system intended for applications with fixed deadlines. • Such applications include some small embedded systems, automobile engine controllers, industrial robots, spacecraft, industrial control, and some large-scale computing systems. • An early example of a large-scale real-time operating system was Transaction Processing Facility developed by American Airlines and IBM for the Sabre Airline Reservations System. 27
  • 28. These are of two types: a) Hard Real Time, b) Soft Real Time. a) These OS guarantee that critical tasks be completed within a certain range of time. Ex: A complete car welding by robot hardly on the time. a) These OS provides some relaxation in time limit. Ex: Multimedia systems, digital audio system. 28
  • 29. DISTRIBUTED SYSTEMS: • A distributed computer system is a collection of autonomous computer systems capable of communication and cooperation via their H/w and S/w interconnection. • The distributed operating system provides a illusion to its users that it has a single uniprocessor system, although it is actually consisted of multiprocessors. • Distributed OS provide the means for system- wide sharing of resources such as computational capacity, files and I/O devices. • Ex: UNIX, LINUX. 29
  • 30. SUMMAR Y • HOW AN OS WORKS Interpreting commands, enabling the user to communicate with the computer. • OS IS SOFTWARE • COMPUTER WORKS WITH THE HELP OF OS When a computer is turned on it searches for instructions in its memory. These instructions tell the computer how to start up. Usually, one of the first sets of these instructions is a special program called the operating system . 30
  • 31. Thanks 31