SlideShare a Scribd company logo
1 of 32
Download to read offline
System Structure

   Organized By: Vinay Arora
                  Assistant Professor
                  CSED, TU




                                   Vinay Arora
                                    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
         http://msdn.microsoft.com/en-us/library/aa450566.aspx
                           www.os-book.com
     http://www.yolinux.com/TUTORIALS/ForkExecProcesses.html
                                 Etc…
                              Vinay Arora
                               CSED,TU
Operating System Services
     User Interface - Almost all operating systems have a user interface.

     Command-Line (CLI), Graphics User Interface (GUI)

     Program Execution - The system must be able to load a program
     into memory and to run that program, end execution.


     I/O Operations - A running program may require I/O, which may
     involve a file or an I/O device.


     File-System Manipulation - Programs need to read and write files
     and directories, create and delete them, search them, list file
     Information, permission management.

                                Vinay Arora
                                 CSED,TU
Operating System Services




                Vinay Arora
                 CSED,TU
Communications – Processes may exchange information.

   Communications may be via shared memory or through message
   passing.

Error Detection – OS needs to be constantly aware of possible errors

   May occur in the CPU and memory hardware, in I/O devices or
   in user program

   For each type of error, OS should take the appropriate action.

   Debugging facilities

                          Vinay Arora
                           CSED,TU
Operating System Interface - CLI
 CLI allows direct command entry

           Sometimes implemented in kernel, sometimes by systems
           program

           Sometimes multiple flavors implemented – shells

           Primarily fetches a command from user and executes it
               Sometimes commands built-in, sometimes just names of
               programs
                    If the latter, adding new features doesn’t require shell
                    modification

                                   Vinay Arora
                                    CSED,TU
CLI




      Vinay Arora
       CSED,TU
CLI




      Vinay Arora
       CSED,TU
Operating System Interface - GUI
   User-friendly desktop metaphor interface

      Usually mouse, keyboard, and monitor

      Icons represent files, programs, actions, etc

      Various mouse buttons over objects in the interface cause various
      actions (provide information, options, execute function, open
      directory (known as a folder)

   Many systems now include both CLI and GUI interfaces



                                 Vinay Arora
                                  CSED,TU
GUI




      Vinay Arora
       CSED,TU
Layered View




               Vinay Arora
                CSED,TU
System Call
   Programming interface to the services provided by the OS.

   Typically written in a high-level language (C or C++)

   The invocation of an operating system routine.

   Operating systems contain sets of routines for performing various low-
   level operations.

   For example, all operating systems have a routine for creating a
   directory. If you want to execute an operating system routine from a
   program, you must make a system call.

                                 Vinay Arora
                                  CSED,TU
Mostly accessed by programs via a high-level Application Program
Interface (API) rather than direct system call use.

Why use APIs rather than system calls? – There are specific reasons for
using APIs or Programming with APIs, Instead of direct System Calls.




                              Vinay Arora
                               CSED,TU
System Call Sequence when Copying from One
               File to another




                    Vinay Arora
                     CSED,TU
API
   Consider the ReadFile() function in the Win32 API—a function for reading from a file




  Description of the parameters passed to ReadFile()

       HANDLE file—the file to be read
       LPVOID buffer—a buffer where the data will be read into and written from
       DWORD bytesToRead—the number of bytes to be read into the buffer
       LPDWORD bytesRead—the number of bytes read during the last read
       LPOVERLAPPED ovl—indicates if overlapped I/O is being used

                                         Vinay Arora
                                          CSED,TU
System Call Implementation
   Typically, a number associated with each system call

       System-call interface maintains a table indexed according to these numbers

   The system call interface invokes 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)


                                      Vinay Arora
                                       CSED,TU
System Call Interface




                 Vinay Arora
                  CSED,TU
Example – Windows/Unix system Call




                 Vinay Arora
                  CSED,TU
Types of System Calls
   Process Control

   File Management

   Device Management

   Information Maintenance

   Communications




                             Vinay Arora
                              CSED,TU
System Program
  Provide a convenient environment for program development and
  execution

     Some of them are simply user interfaces to system calls; others are
     considerably more complex




                                Vinay Arora
                                 CSED,TU
Standard C Library Example
   C program invoking printf() library call, which calls write() system call




                                  Vinay Arora
                                   CSED,TU
Operating System Design & Implementation

   Important principle to separate

        Policy: What will be done?
        Mechanism: How to do it?

   Mechanisms determine how to do something, policies decide what will
   be done

      The separation of policy from mechanism is a very important
      principle, it allows maximum flexibility if policy decisions are to be
      changed later



                                     Vinay Arora
                                      CSED,TU
Layered Approach
   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




                                  Vinay Arora
                                   CSED,TU
Layered View of Operating System




                Vinay Arora
                 CSED,TU
Microkernel System Structure
   Moves as much from the kernel into “user” space

   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

                                 Vinay Arora
                                  CSED,TU
Virtual Machines
   Fundamental Idea behind a virtual machine is to abstract the hardware
   of a single Computer into several different execution environments.

   Illusion will be created that each separate execution environment is
   running its own private computer.

   The Operating System creates the illusion of multiple processes, each
   executing on its own processor with its own (virtual) memory.

   The virtual-machine concept provides complete protection of system
   resources since each virtual machine is isolated from all other virtual
   machines.


                                  Vinay Arora
                                   CSED,TU
VMware Architecture




               Vinay Arora
                CSED,TU
BIOS




       Vinay Arora
        CSED,TU
Motherboard BIOS




               Vinay Arora
                CSED,TU
System Boot
   Operating system must be made available to hardware so hardware can
   start it

      Small piece of code – bootstrap loader, locates the kernel, loads it
      into memory, and starts it

      Sometimes two-step process where boot block at fixed location
      loads bootstrap loader

      When power initialized on system, execution starts at a fixed
      memory location
        Firmware used to hold initial boot code


                                 Vinay Arora
                                  CSED,TU
Booting Steps

   Power On the Computer Machine.
   NO Data to process for the Processor.
   Data present in BIOS ROM will be processed first.
   Perform POST.
   Display System Settings.
   Load Interrupt Handler and Device Drivers.
   Check CMOS for custom settings.
   Initiate the Bootstrap sequence.
   Searching for target BOOT drive.
   Locate the MBR .
   Start OS.

                                Vinay Arora
                                 CSED,TU
Thnx…



  Vinay Arora
   CSED,TU

More Related Content

What's hot (20)

7 disk managment
7 disk managment7 disk managment
7 disk managment
 
Cs6413 operating-systems-laboratory
Cs6413 operating-systems-laboratoryCs6413 operating-systems-laboratory
Cs6413 operating-systems-laboratory
 
Ch12
Ch12Ch12
Ch12
 
Introduction to operating systems
Introduction to operating systemsIntroduction to operating systems
Introduction to operating systems
 
Structure of operating system
Structure of operating systemStructure of operating system
Structure of operating system
 
Unit vos - File systems
Unit vos - File systemsUnit vos - File systems
Unit vos - File systems
 
Board support package_on_linux
Board support package_on_linuxBoard support package_on_linux
Board support package_on_linux
 
Kcd226 Sistem Operasi Lecture01
Kcd226 Sistem Operasi Lecture01Kcd226 Sistem Operasi Lecture01
Kcd226 Sistem Operasi Lecture01
 
OS Slide Ch12 13
OS Slide Ch12 13OS Slide Ch12 13
OS Slide Ch12 13
 
Operating system
Operating systemOperating system
Operating system
 
OSCh13
OSCh13OSCh13
OSCh13
 
CPU
CPUCPU
CPU
 
Cs8493 unit 5
Cs8493 unit 5Cs8493 unit 5
Cs8493 unit 5
 
os mod1 notes
 os mod1 notes os mod1 notes
os mod1 notes
 
Ch04
Ch04Ch04
Ch04
 
Sucet os module_4_notes
Sucet os module_4_notesSucet os module_4_notes
Sucet os module_4_notes
 
Unix case-study
Unix case-studyUnix case-study
Unix case-study
 
CPU
CPUCPU
CPU
 
Kernel I/O subsystem
Kernel I/O subsystemKernel I/O subsystem
Kernel I/O subsystem
 
Chapter 01
Chapter 01Chapter 01
Chapter 01
 

Similar to OS - System Structure

Operating System 2
Operating System 2Operating System 2
Operating System 2tech2click
 
OS - Ch2
OS - Ch2OS - Ch2
OS - Ch2sphs
 
Chapter 2 - Operating System Structures
Chapter 2 - Operating System StructuresChapter 2 - Operating System Structures
Chapter 2 - Operating System StructuresWayne Jones Jnr
 
Operating-System Structures
Operating-System StructuresOperating-System Structures
Operating-System StructuresCloudbells.com
 
MELJUN CORTES operating_system_structure
MELJUN CORTES operating_system_structureMELJUN CORTES operating_system_structure
MELJUN CORTES operating_system_structureMELJUN CORTES
 
2.Operating System Structures
2.Operating System Structures2.Operating System Structures
2.Operating System StructuresSenthil Kanth
 
2.Operating System Structures
2.Operating System Structures2.Operating System Structures
2.Operating System StructuresSenthil Kanth
 
Lecture_02_Operating System Structures Operating Systems
Lecture_02_Operating System Structures Operating SystemsLecture_02_Operating System Structures Operating Systems
Lecture_02_Operating System Structures Operating SystemsArnoyKhan
 
OS Services, System call, Virtual Machine
OS Services, System call, Virtual MachineOS Services, System call, Virtual Machine
OS Services, System call, Virtual MachineDivya S
 
Operating System Concepts Presentation
Operating System Concepts PresentationOperating System Concepts Presentation
Operating System Concepts PresentationNitish Jadia
 
OS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptxOS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptxPRABAVATHIH
 
Operating system structures
Operating system structuresOperating system structures
Operating system structuresMohd Arif
 
Windows Architecture Explained by Stacksol
Windows Architecture Explained by StacksolWindows Architecture Explained by Stacksol
Windows Architecture Explained by StacksolStacksol
 
Operating System- Structures of Operating System
Operating System- Structures of Operating SystemOperating System- Structures of Operating System
Operating System- Structures of Operating SystemJimmyWilson26
 

Similar to OS - System Structure (20)

Operating System 2
Operating System 2Operating System 2
Operating System 2
 
OS - Ch2
OS - Ch2OS - Ch2
OS - Ch2
 
Chapter 2 - Operating System Structures
Chapter 2 - Operating System StructuresChapter 2 - Operating System Structures
Chapter 2 - Operating System Structures
 
Ch2
Ch2Ch2
Ch2
 
Operating-System Structures
Operating-System StructuresOperating-System Structures
Operating-System Structures
 
MELJUN CORTES operating_system_structure
MELJUN CORTES operating_system_structureMELJUN CORTES operating_system_structure
MELJUN CORTES operating_system_structure
 
2.Operating System Structures
2.Operating System Structures2.Operating System Structures
2.Operating System Structures
 
2.Operating System Structures
2.Operating System Structures2.Operating System Structures
2.Operating System Structures
 
Lecture_02_Operating System Structures Operating Systems
Lecture_02_Operating System Structures Operating SystemsLecture_02_Operating System Structures Operating Systems
Lecture_02_Operating System Structures Operating Systems
 
OS-ch02-part-1-2024.ppt
OS-ch02-part-1-2024.pptOS-ch02-part-1-2024.ppt
OS-ch02-part-1-2024.ppt
 
OS Services, System call, Virtual Machine
OS Services, System call, Virtual MachineOS Services, System call, Virtual Machine
OS Services, System call, Virtual Machine
 
CH02.pdf
CH02.pdfCH02.pdf
CH02.pdf
 
Operating System Concepts Presentation
Operating System Concepts PresentationOperating System Concepts Presentation
Operating System Concepts Presentation
 
Operating system
Operating systemOperating system
Operating system
 
chapter2.pptx
chapter2.pptxchapter2.pptx
chapter2.pptx
 
OS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptxOS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptx
 
Operating system structures
Operating system structuresOperating system structures
Operating system structures
 
Windows Architecture Explained by Stacksol
Windows Architecture Explained by StacksolWindows Architecture Explained by Stacksol
Windows Architecture Explained by Stacksol
 
Ch3
Ch3Ch3
Ch3
 
Operating System- Structures of Operating System
Operating System- Structures of Operating SystemOperating System- Structures of Operating System
Operating System- Structures of Operating System
 

More from vinay arora

Search engine and web crawler
Search engine and web crawlerSearch engine and web crawler
Search engine and web crawlervinay 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 diagramvinay 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
 
4 java - decision
4  java - decision4  java - decision
4 java - decisionvinay arora
 
3 java - variable type
3  java - variable type3  java - variable type
3 java - variable typevinay arora
 
2 java - operators
2  java - operators2  java - operators
2 java - operatorsvinay arora
 
1 java - data type
1  java - data type1  java - data type
1 java - data typevinay 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

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 

Recently uploaded (20)

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 

OS - System Structure

  • 1. System Structure Organized By: Vinay Arora Assistant Professor CSED, TU Vinay Arora 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 http://msdn.microsoft.com/en-us/library/aa450566.aspx www.os-book.com http://www.yolinux.com/TUTORIALS/ForkExecProcesses.html Etc… Vinay Arora CSED,TU
  • 3. Operating System Services User Interface - Almost all operating systems have a user interface. Command-Line (CLI), Graphics User Interface (GUI) Program Execution - The system must be able to load a program into memory and to run that program, end execution. I/O Operations - A running program may require I/O, which may involve a file or an I/O device. File-System Manipulation - Programs need to read and write files and directories, create and delete them, search them, list file Information, permission management. Vinay Arora CSED,TU
  • 4. Operating System Services Vinay Arora CSED,TU
  • 5. Communications – Processes may exchange information. Communications may be via shared memory or through message passing. Error Detection – OS needs to be constantly aware of possible errors May occur in the CPU and memory hardware, in I/O devices or in user program For each type of error, OS should take the appropriate action. Debugging facilities Vinay Arora CSED,TU
  • 6. Operating System Interface - CLI CLI allows direct command entry Sometimes implemented in kernel, sometimes by systems program Sometimes multiple flavors implemented – shells Primarily fetches a command from user and executes it Sometimes commands built-in, sometimes just names of programs If the latter, adding new features doesn’t require shell modification Vinay Arora CSED,TU
  • 7. CLI Vinay Arora CSED,TU
  • 8. CLI Vinay Arora CSED,TU
  • 9. Operating System Interface - GUI User-friendly desktop metaphor interface Usually mouse, keyboard, and monitor Icons represent files, programs, actions, etc Various mouse buttons over objects in the interface cause various actions (provide information, options, execute function, open directory (known as a folder) Many systems now include both CLI and GUI interfaces Vinay Arora CSED,TU
  • 10. GUI Vinay Arora CSED,TU
  • 11. Layered View Vinay Arora CSED,TU
  • 12. System Call Programming interface to the services provided by the OS. Typically written in a high-level language (C or C++) The invocation of an operating system routine. Operating systems contain sets of routines for performing various low- level operations. For example, all operating systems have a routine for creating a directory. If you want to execute an operating system routine from a program, you must make a system call. Vinay Arora CSED,TU
  • 13. Mostly accessed by programs via a high-level Application Program Interface (API) rather than direct system call use. Why use APIs rather than system calls? – There are specific reasons for using APIs or Programming with APIs, Instead of direct System Calls. Vinay Arora CSED,TU
  • 14. System Call Sequence when Copying from One File to another Vinay Arora CSED,TU
  • 15. API Consider the ReadFile() function in the Win32 API—a function for reading from a file Description of the parameters passed to ReadFile() HANDLE file—the file to be read LPVOID buffer—a buffer where the data will be read into and written from DWORD bytesToRead—the number of bytes to be read into the buffer LPDWORD bytesRead—the number of bytes read during the last read LPOVERLAPPED ovl—indicates if overlapped I/O is being used Vinay Arora CSED,TU
  • 16. System Call Implementation Typically, a number associated with each system call System-call interface maintains a table indexed according to these numbers The system call interface invokes 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) Vinay Arora CSED,TU
  • 17. System Call Interface Vinay Arora CSED,TU
  • 18. Example – Windows/Unix system Call Vinay Arora CSED,TU
  • 19. Types of System Calls Process Control File Management Device Management Information Maintenance Communications Vinay Arora CSED,TU
  • 20. System Program Provide a convenient environment for program development and execution Some of them are simply user interfaces to system calls; others are considerably more complex Vinay Arora CSED,TU
  • 21. Standard C Library Example C program invoking printf() library call, which calls write() system call Vinay Arora CSED,TU
  • 22. Operating System Design & Implementation Important principle to separate Policy: What will be done? Mechanism: How to do it? Mechanisms determine how to do something, policies decide what will be done The separation of policy from mechanism is a very important principle, it allows maximum flexibility if policy decisions are to be changed later Vinay Arora CSED,TU
  • 23. Layered Approach 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 Vinay Arora CSED,TU
  • 24. Layered View of Operating System Vinay Arora CSED,TU
  • 25. Microkernel System Structure Moves as much from the kernel into “user” space 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 Vinay Arora CSED,TU
  • 26. Virtual Machines Fundamental Idea behind a virtual machine is to abstract the hardware of a single Computer into several different execution environments. Illusion will be created that each separate execution environment is running its own private computer. The Operating System creates the illusion of multiple processes, each executing on its own processor with its own (virtual) memory. The virtual-machine concept provides complete protection of system resources since each virtual machine is isolated from all other virtual machines. Vinay Arora CSED,TU
  • 27. VMware Architecture Vinay Arora CSED,TU
  • 28. BIOS Vinay Arora CSED,TU
  • 29. Motherboard BIOS Vinay Arora CSED,TU
  • 30. System Boot Operating system must be made available to hardware so hardware can start it Small piece of code – bootstrap loader, locates the kernel, loads it into memory, and starts it Sometimes two-step process where boot block at fixed location loads bootstrap loader When power initialized on system, execution starts at a fixed memory location Firmware used to hold initial boot code Vinay Arora CSED,TU
  • 31. Booting Steps Power On the Computer Machine. NO Data to process for the Processor. Data present in BIOS ROM will be processed first. Perform POST. Display System Settings. Load Interrupt Handler and Device Drivers. Check CMOS for custom settings. Initiate the Bootstrap sequence. Searching for target BOOT drive. Locate the MBR . Start OS. Vinay Arora CSED,TU
  • 32. Thnx… Vinay Arora CSED,TU