SlideShare a Scribd company logo
Introduction to Operating
         Systems
Organized By: Vinay Arora
               Assistant Professor
               CSED, TU




                                   V.A.
                                 CSED,TU
Disclaimer

           This is NOT A COPYRIGHT          MATERIAL


   Content has been taken mainly from the following books:

        Operating Systems Concepts By Silberschatz & Galvin,
Operating Systems: Internals and Design Principles By William Stallings
                        www.os-book.com
         www.cs.jhu.edu/~yairamir/cs418/os2/sld001.htm
     www.personal.kent.edu/~rmuhamma/OpSystems/os.html
 http://msdn.microsoft.com/en-us/library/ms685096(VS.85).aspx
http://www.computer.howsttuffworks.com/operating-system6.htm
         http://williamstallings.com/OS/Animations.html
                               Etc…

                              Vinay Arora
                               CSED,TU
Operating System - Layered View




                Vinay Arora
                 CSED,TU
Operating System - Definition
   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.




                                Vinay Arora
                                 CSED,TU
Various OS




             Vinay Arora
              CSED,TU
Operating Systems can be Classified as
              Follows:
 Multi-user : Allows two or more users to run programs at the same
 time. Some operating systems permit hundreds or even thousands of
 concurrent users.

 Multiprocessing : Supports running a program on more than one CPU.

 Multitasking : Allows more than one program to run concurrently.

 Multithreading : Allows different parts of a single program to run
 concurrently.

 Real Time: Responds to input instantly.



                               Vinay Arora
                                CSED,TU
Abstract View




                Vinay Arora
                 CSED,TU
Operating System – Def.
   OS is a RESOURCE ALLOCATOR

     Manages all resources

     Decides between conflicting requests for efficient and fair resource
     use

   OS is a CONTROL PROGRAM

     Controls execution of programs to prevent errors and improper use
     of the computer



                                Vinay Arora
                                 CSED,TU
Computer Start Up
   BOOTSTRAP PROGRAM is loaded at power-up or reboot

      Typically stored in ROM or EEPROM, generally known as
      firmware



      Initialize all aspects of system



      Loads operating system kernel and starts execution




                                  Vinay Arora
                                   CSED,TU
Computer System Organization




                Vinay Arora
                 CSED,TU
Memory Hierarchy




               Vinay Arora
                CSED,TU
Operating System Structure

   Multiprogramming 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

                                Vinay Arora
                                 CSED,TU
Multitasking (Time Sharing)




                 Vinay Arora
                  CSED,TU
Time Sharing
   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

      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

                                 Vinay Arora
                                  CSED,TU
Memory Layout for Multiprogramming
             System




                Vinay Arora
                 CSED,TU
Job/CPU Scheduling


   Job Scheduling – Choosing the job among several jobs are ready to be
   brought into Memory when there is not enough room for all of them.
   (Bringing the particular job into ready queue)


   CPU Scheduling – Choosing the job among the several when jobs are
   ready to run at the same time. (Allocation of CPU to particular job)




                                 Vinay Arora
                                  CSED,TU
Caching
  Important principle, performed at many levels in a computer (in
  hardware, operating system, software)

  Information in use copied from slower to faster storage temporarily

  Faster storage (cache) checked first to determine if information is there
      If it is, information used directly from the cache (fast)
      If not, data copied to cache and used there

  Cache smaller than storage being cached
     Cache management important design problem
     Cache size and replacement policy


                                 Vinay Arora
                                  CSED,TU
Migration of Integer A from Disk to Register




                      Vinay Arora
                       CSED,TU
Operating-System Operations
   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


                                 Vinay Arora
                                  CSED,TU
Transition from User to Kernel Mode




                  Vinay Arora
                   CSED,TU
Timer
  Timer to Prevent Infinite Loop / Process hogging resources

     Set interrupt after specific period

     Operating system decrements counter

     When counter zero generate an interrupt

     Set up before scheduling process to regain control or terminate
     program that exceeds allotted time




                                 Vinay Arora
                                  CSED,TU
Process Management Activities

   Creating and deleting both user and system processes

   Suspending and resuming processes

   Providing mechanisms for process synchronization

   Providing mechanisms for process communication

   Providing mechanisms for deadlock handling



                                 Vinay Arora
                                  CSED,TU
Memory Management
  All data in memory before and after processing

  All Instructions in memory in order to execute

  Memory Management determines what is in memory when
    Optimizing CPU utilization and computer response to users

  Memory Management activities
    Keeping track of which parts of memory are currently being used
    and by whom
    Deciding which processes (or parts thereof) and data to move into
    and out of memory
    Allocating and deallocating memory space as needed

                                Vinay Arora
                                 CSED,TU
Mass-Storage Management
  Usually disks used to store data that does not fit in main memory or data
  that must be kept for a “long” period of time.

  Proper Management is of central importance

  Entire Speed of computer operation hinges on disk subsystem and its
  algorithms

  OS Activities

     Free-Space Management
     Storage Allocation
     Disk Scheduling

                                 Vinay Arora
                                  CSED,TU
Protection and Security
   Protection – any mechanism for controlling access of processes or users
   to resources defined by the OS

   Security – defense of the system against internal and external attacks

       Huge range, including denial-of-service, worms, viruses, identity
       theft, theft of service

   Systems generally first distinguish among users, to determine who can
   do what

       User identities (user IDs, security IDs) Group IDPrivilege escalation
       allows user to change to effective ID with more rights


                                  Vinay Arora
                                   CSED,TU
Computing Environments
   Client-Server Computing
           Compute-server provides an interface to client to request
           services (i.e. database)
           File-server provides interface for clients to store and retrieve
           files




                                   Vinay Arora
                                    CSED,TU
Peer-to-Peer Computing
   Another model of distributed system

   P2P does not distinguish clients and servers

      Instead all nodes are considered peers

      May each act as client, server or both

      Node must join P2P network
         Registers its service with central lookup service on network, or
         Broadcast request for service and respond to requests for service
         via discovery protocol

                                  Vinay Arora
                                   CSED,TU
Thnx…



  Vinay Arora
   CSED,TU

More Related Content

What's hot

Palpandi
PalpandiPalpandi
Os
OsOs
Pandi
PandiPandi
Pandi
Pandi C
 
Mass storage systemsos
Mass storage systemsosMass storage systemsos
Mass storage systemsos
Gokila Manickam
 
DB_ch11
DB_ch11DB_ch11
DB_ch11
Pankaj Pandey
 
Storage Management
Storage ManagementStorage Management
Storage Management
SURBHI SAROHA
 
7 disk managment
7 disk managment7 disk managment
7 disk managment
ashishkhatu1
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
Wayne Jones Jnr
 
Massstorage
MassstorageMassstorage
Massstorage
mari sami
 
Unit 10
Unit 10Unit 10
Disksim with SSD_extension
Disksim with SSD_extensionDisksim with SSD_extension
Disksim with SSD_extension
cucufrog
 
Booting
BootingBooting
Booting
Ashish K
 
Mass storage structure
Mass storage structureMass storage structure
Mass storage structure
pramila kanagaraj
 
Os
OsOs
Sheik Mohamed Shadik - BSc - Project Details
Sheik Mohamed Shadik - BSc - Project DetailsSheik Mohamed Shadik - BSc - Project Details
Sheik Mohamed Shadik - BSc - Project Details
shadikbsc
 
Mass storage device
Mass storage deviceMass storage device
Mass storage deviceRaza Umer
 
Hard disk
Hard diskHard disk
Hard disk
Tukaram Gundoor
 

What's hot (20)

Palpandi
PalpandiPalpandi
Palpandi
 
OS - Thread
OS - ThreadOS - Thread
OS - Thread
 
Os
OsOs
Os
 
Pandi
PandiPandi
Pandi
 
Mass storage systemsos
Mass storage systemsosMass storage systemsos
Mass storage systemsos
 
DB_ch11
DB_ch11DB_ch11
DB_ch11
 
Storage Management
Storage ManagementStorage Management
Storage Management
 
7 disk managment
7 disk managment7 disk managment
7 disk managment
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
 
Massstorage
MassstorageMassstorage
Massstorage
 
Unit 10
Unit 10Unit 10
Unit 10
 
Disksim with SSD_extension
Disksim with SSD_extensionDisksim with SSD_extension
Disksim with SSD_extension
 
Booting
BootingBooting
Booting
 
Mass storage structure
Mass storage structureMass storage structure
Mass storage structure
 
Os
OsOs
Os
 
My_Resume
My_ResumeMy_Resume
My_Resume
 
Sheik Mohamed Shadik - BSc - Project Details
Sheik Mohamed Shadik - BSc - Project DetailsSheik Mohamed Shadik - BSc - Project Details
Sheik Mohamed Shadik - BSc - Project Details
 
Mass storage device
Mass storage deviceMass storage device
Mass storage device
 
OSCh14
OSCh14OSCh14
OSCh14
 
Hard disk
Hard diskHard disk
Hard disk
 

Similar to OS - Introduction to Operating Systems

Unit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptxUnit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptx
ThamaraiselviAvinuty
 
Operating system
Operating systemOperating system
Operating systemmak120
 
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
Rai University
 
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
 
Operating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESOperating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTES
KopinathMURUGESAN
 
OPERATING SYSTEM
OPERATING SYSTEM OPERATING SYSTEM
OPERATING SYSTEM
Khehra Saab
 
Docs_CSEOSLNotes2013.pdf
Docs_CSEOSLNotes2013.pdfDocs_CSEOSLNotes2013.pdf
Docs_CSEOSLNotes2013.pdf
GGESBachianwali
 
ch1.ppt
ch1.pptch1.ppt
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
np_manjunath
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
VandanaGaria
 
Operting system
Operting systemOperting system
Operting system
KAnurag2
 
Unit 1 introduction to Operating System
Unit 1 introduction to Operating SystemUnit 1 introduction to Operating System
Unit 1 introduction to Operating System
zahid7578
 
OS - Ch1
OS - Ch1OS - Ch1
OS - Ch1sphs
 
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 chapterssphs
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - IntroductionWayne Jones Jnr
 
Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]
Amit Gupta
 
Lecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionLecture_01 Operating System Course Introduction
Lecture_01 Operating System Course Introduction
ArnoyKhan
 

Similar to OS - Introduction to Operating Systems (20)

Unit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptxUnit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptx
 
Operating system
Operating systemOperating system
Operating system
 
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
 
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
 
Operating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESOperating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTES
 
OPERATING SYSTEM
OPERATING SYSTEM OPERATING SYSTEM
OPERATING SYSTEM
 
Docs_CSEOSLNotes2013.pdf
Docs_CSEOSLNotes2013.pdfDocs_CSEOSLNotes2013.pdf
Docs_CSEOSLNotes2013.pdf
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
 
OS - Process
OS - ProcessOS - Process
OS - Process
 
UNIT 2.pptx
UNIT 2.pptxUNIT 2.pptx
UNIT 2.pptx
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
Ch1
Ch1Ch1
Ch1
 
Operting system
Operting systemOperting system
Operting system
 
Unit 1 introduction to Operating System
Unit 1 introduction to Operating SystemUnit 1 introduction to Operating System
Unit 1 introduction to Operating System
 
OS - Ch1
OS - Ch1OS - Ch1
OS - Ch1
 
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
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - Introduction
 
Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]
 
Lecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionLecture_01 Operating System Course Introduction
Lecture_01 Operating System Course Introduction
 

More from vinay arora

Search engine and web crawler
Search engine and web crawlerSearch engine and web crawler
Search engine and web crawler
vinay arora
 
Use case diagram (airport)
Use case diagram (airport)Use case diagram (airport)
Use case diagram (airport)
vinay arora
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
vinay arora
 
Lab exercise questions (AD & CD)
Lab exercise questions (AD & CD)Lab exercise questions (AD & CD)
Lab exercise questions (AD & CD)
vinay arora
 
SEM - UML (1st case study)
SEM - UML (1st case study)SEM - UML (1st case study)
SEM - UML (1st case study)
vinay arora
 
6 java - loop
6  java - loop6  java - loop
6 java - loop
vinay arora
 
4 java - decision
4  java - decision4  java - decision
4 java - decision
vinay arora
 
3 java - variable type
3  java - variable type3  java - variable type
3 java - variable type
vinay arora
 
2 java - operators
2  java - operators2  java - operators
2 java - operators
vinay arora
 
1 java - data type
1  java - data type1  java - data type
1 java - data type
vinay arora
 
Uta005 lecture3
Uta005 lecture3Uta005 lecture3
Uta005 lecture3
vinay arora
 
Uta005 lecture1
Uta005 lecture1Uta005 lecture1
Uta005 lecture1
vinay arora
 
Uta005 lecture2
Uta005 lecture2Uta005 lecture2
Uta005 lecture2
vinay arora
 
Security & Protection
Security & ProtectionSecurity & Protection
Security & Protectionvinay arora
 
Process Synchronization
Process SynchronizationProcess Synchronization
Process Synchronizationvinay arora
 
CG - Output Primitives
CG - Output PrimitivesCG - Output Primitives
CG - Output Primitivesvinay arora
 
CG - Display Devices
CG - Display DevicesCG - Display Devices
CG - Display Devicesvinay arora
 
CG - Input Output Devices
CG - Input Output DevicesCG - Input Output Devices
CG - Input Output Devicesvinay arora
 
CG - Introduction to Computer Graphics
CG - Introduction to Computer GraphicsCG - Introduction to Computer Graphics
CG - Introduction to Computer Graphicsvinay arora
 
C Prog. - Strings (Updated)
C Prog. - Strings (Updated)C Prog. - Strings (Updated)
C Prog. - Strings (Updated)vinay arora
 

More from vinay arora (20)

Search engine and web crawler
Search engine and web crawlerSearch engine and web crawler
Search engine and web crawler
 
Use case diagram (airport)
Use case diagram (airport)Use case diagram (airport)
Use case diagram (airport)
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
 
Lab exercise questions (AD & CD)
Lab exercise questions (AD & CD)Lab exercise questions (AD & CD)
Lab exercise questions (AD & CD)
 
SEM - UML (1st case study)
SEM - UML (1st case study)SEM - UML (1st case study)
SEM - UML (1st case study)
 
6 java - loop
6  java - loop6  java - loop
6 java - loop
 
4 java - decision
4  java - decision4  java - decision
4 java - decision
 
3 java - variable type
3  java - variable type3  java - variable type
3 java - variable type
 
2 java - operators
2  java - operators2  java - operators
2 java - operators
 
1 java - data type
1  java - data type1  java - data type
1 java - data type
 
Uta005 lecture3
Uta005 lecture3Uta005 lecture3
Uta005 lecture3
 
Uta005 lecture1
Uta005 lecture1Uta005 lecture1
Uta005 lecture1
 
Uta005 lecture2
Uta005 lecture2Uta005 lecture2
Uta005 lecture2
 
Security & Protection
Security & ProtectionSecurity & Protection
Security & Protection
 
Process Synchronization
Process SynchronizationProcess Synchronization
Process Synchronization
 
CG - Output Primitives
CG - Output PrimitivesCG - Output Primitives
CG - Output Primitives
 
CG - Display Devices
CG - Display DevicesCG - Display Devices
CG - Display Devices
 
CG - Input Output Devices
CG - Input Output DevicesCG - Input Output Devices
CG - Input Output Devices
 
CG - Introduction to Computer Graphics
CG - Introduction to Computer GraphicsCG - Introduction to Computer Graphics
CG - Introduction to Computer Graphics
 
C Prog. - Strings (Updated)
C Prog. - Strings (Updated)C Prog. - Strings (Updated)
C Prog. - Strings (Updated)
 

Recently uploaded

MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 

Recently uploaded (20)

MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 

OS - Introduction to Operating Systems

  • 1. Introduction to Operating Systems Organized By: Vinay Arora Assistant Professor CSED, TU V.A. CSED,TU
  • 2. Disclaimer This is NOT A COPYRIGHT MATERIAL Content has been taken mainly from the following books: Operating Systems Concepts By Silberschatz & Galvin, Operating Systems: Internals and Design Principles By William Stallings www.os-book.com www.cs.jhu.edu/~yairamir/cs418/os2/sld001.htm www.personal.kent.edu/~rmuhamma/OpSystems/os.html http://msdn.microsoft.com/en-us/library/ms685096(VS.85).aspx http://www.computer.howsttuffworks.com/operating-system6.htm http://williamstallings.com/OS/Animations.html Etc… Vinay Arora CSED,TU
  • 3. Operating System - Layered View Vinay Arora CSED,TU
  • 4. Operating System - Definition 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. Vinay Arora CSED,TU
  • 5. Various OS Vinay Arora CSED,TU
  • 6. Operating Systems can be Classified as Follows: Multi-user : Allows two or more users to run programs at the same time. Some operating systems permit hundreds or even thousands of concurrent users. Multiprocessing : Supports running a program on more than one CPU. Multitasking : Allows more than one program to run concurrently. Multithreading : Allows different parts of a single program to run concurrently. Real Time: Responds to input instantly. Vinay Arora CSED,TU
  • 7. Abstract View Vinay Arora CSED,TU
  • 8. Operating System – Def. OS is a RESOURCE ALLOCATOR Manages all resources Decides between conflicting requests for efficient and fair resource use OS is a CONTROL PROGRAM Controls execution of programs to prevent errors and improper use of the computer Vinay Arora CSED,TU
  • 9. Computer Start Up BOOTSTRAP PROGRAM is loaded at power-up or reboot Typically stored in ROM or EEPROM, generally known as firmware Initialize all aspects of system Loads operating system kernel and starts execution Vinay Arora CSED,TU
  • 10. Computer System Organization Vinay Arora CSED,TU
  • 11. Memory Hierarchy Vinay Arora CSED,TU
  • 12. Operating System Structure Multiprogramming 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 Vinay Arora CSED,TU
  • 13. Multitasking (Time Sharing) Vinay Arora CSED,TU
  • 14. Time Sharing 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 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 Vinay Arora CSED,TU
  • 15. Memory Layout for Multiprogramming System Vinay Arora CSED,TU
  • 16. Job/CPU Scheduling Job Scheduling – Choosing the job among several jobs are ready to be brought into Memory when there is not enough room for all of them. (Bringing the particular job into ready queue) CPU Scheduling – Choosing the job among the several when jobs are ready to run at the same time. (Allocation of CPU to particular job) Vinay Arora CSED,TU
  • 17. Caching Important principle, performed at many levels in a computer (in hardware, operating system, software) Information in use copied from slower to faster storage temporarily Faster storage (cache) checked first to determine if information is there If it is, information used directly from the cache (fast) If not, data copied to cache and used there Cache smaller than storage being cached Cache management important design problem Cache size and replacement policy Vinay Arora CSED,TU
  • 18. Migration of Integer A from Disk to Register Vinay Arora CSED,TU
  • 19. Operating-System Operations 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 Vinay Arora CSED,TU
  • 20. Transition from User to Kernel Mode Vinay Arora CSED,TU
  • 21. Timer Timer to Prevent Infinite Loop / Process hogging resources Set interrupt after specific period Operating system decrements counter When counter zero generate an interrupt Set up before scheduling process to regain control or terminate program that exceeds allotted time Vinay Arora CSED,TU
  • 22. Process Management Activities Creating and deleting both user and system processes Suspending and resuming processes Providing mechanisms for process synchronization Providing mechanisms for process communication Providing mechanisms for deadlock handling Vinay Arora CSED,TU
  • 23. Memory Management All data in memory before and after processing All Instructions in memory in order to execute Memory Management determines what is in memory when Optimizing CPU utilization and computer response to users Memory Management activities Keeping track of which parts of memory are currently being used and by whom Deciding which processes (or parts thereof) and data to move into and out of memory Allocating and deallocating memory space as needed Vinay Arora CSED,TU
  • 24. Mass-Storage Management Usually disks used to store data that does not fit in main memory or data that must be kept for a “long” period of time. Proper Management is of central importance Entire Speed of computer operation hinges on disk subsystem and its algorithms OS Activities Free-Space Management Storage Allocation Disk Scheduling Vinay Arora CSED,TU
  • 25. Protection and Security Protection – any mechanism for controlling access of processes or users to resources defined by the OS Security – defense of the system against internal and external attacks Huge range, including denial-of-service, worms, viruses, identity theft, theft of service Systems generally first distinguish among users, to determine who can do what User identities (user IDs, security IDs) Group IDPrivilege escalation allows user to change to effective ID with more rights Vinay Arora CSED,TU
  • 26. Computing Environments Client-Server Computing Compute-server provides an interface to client to request services (i.e. database) File-server provides interface for clients to store and retrieve files Vinay Arora CSED,TU
  • 27. Peer-to-Peer Computing Another model of distributed system P2P does not distinguish clients and servers Instead all nodes are considered peers May each act as client, server or both Node must join P2P network Registers its service with central lookup service on network, or Broadcast request for service and respond to requests for service via discovery protocol Vinay Arora CSED,TU
  • 28. Thnx… Vinay Arora CSED,TU