SlideShare une entreprise Scribd logo
1  sur  30
Télécharger pour lire hors ligne
Part I Overview
Chapter 1: Introduction



                          1
What is an Operating System?
§ A computer system can be roughly divided into
  the hardware, the operating system, the
  application programs, and the users.
§ The hardware (i.e., CPU, memory, I/O devices)
  provides the basic computing resources.
§ The application programs (e.g., web browsers,
  word processors, and compilers) are used to
  solve user problems.
§ The operating system controls and coordinates
  the use of hardware among various application
  programs.
                                              2
User View
§ PC Users: an operating system is a
  program that provides an easy-to-use
  interface for using the hardware.
§ Mainframe/Minicomputer Users: an
  operating system is a program that helps
  maximize the system resource utilization.
§ Workstation Users: an operating system
  is a program designed to compromise
  between individual usability and resource
  utilization.
                                          3
System View
§ A Resource Manager: the operating system allocates
  and reclaims the system hardware resources to and
  from user programs.
§ A Control Program: the operating system controls the
  execution of user programs to prevent errors and
  improper use of the computer.
§ There is no universal definition of what is an
  operating system. A common definition is that the
  operating system is the one program running at all
  times on the computer (i.e., the kernel). All other
  programs are application programs.

                                                  4
The Goals of an Operating System

§ Primary Goal: efficient operation of the
  computer system.
§ In some systems, it is easy of use.
§ In general, efficiency is far more important
  than easy of use.




                                            5
Computer-System Organization

§ Computer-System Operation
§ Storage Structure (von Neumann
  architecture):
  • CPU-Memory
  • Fetch-decode-execute-store
§ I/O structure
§ More on the next few slides
                                   6
Computer System Operation
                                            tapes
                 disk
                                 printer                § How does
                           printer                        the OS get
             disk
                                                          into system?
                                                        § How do we
                              Printer        Tape
                Disk                                      request for
  CPU         Controller   Controller      Controller
                                                          services?
                                                        § How does
system bus                                                the OS know
                                                          something
                Memory Controller
                                                          has
                                                          happened?
                     Memory
                                                                  7
Storage Hierarchy
slower and          reg.           faster and
larger volume                  more expansive
                   cache

                 main mem.

            electronic disk

            magnetic disk

                optical disk

                magnetic tape
                                                8
I/O Structure
a typical PCI bus structure




                              9
Interrupt and Trap
§ An event that requires the attention of the OS
  is an interrupt. These events include the
  completion of an I/O, a keypress, a request for
  service, a division by zero and so on.
§ Interrupts may be generated by hardware or
  software.
§ An interrupt generated by software (i.e.,
  division by 0) is usually referred to as a trap.
§ Modern operating systems are interrupt driven,
  meaning the OS is in action only if an interrupt
  occurs.
                                                 10
What is Interrupt-Driven?
            kernel                     § The OS is
                                         activated by an
              interrupt                  interrupt.
                             service
               handler                 § The executing
interrupt                                program is
                     mode switch         suspended.
                                       § Control is
                                         transferred to
                                         the OS.
                                       § Program
                 ADD #4, 3               continues when
                                         the service
                                         completes.
                                                      11
I/O Interrupt
       CPU
                          I/O Controller
     device driver
     initiates I/O


                                initiates I/O
  receives interrupt
calls interrupt handler


                                     done
    processes data             raises interrupt
     and returns



      resumes the
     Interrupt task
                                                  12
Direct Memory Access
qFor large volume data transfer, most systems use
 direct memory access to avoid burdening the CPU.
qThe CPU gives the controller (1) disk address, (2)
 memory address for storing the block, and (3) a
 byte count. Then, the CPU goes back to work.




                                                13
Computer-System Architecture
§ Single-Processor Systems
§ Multiprocessor Systems
§ Clustered Systems
   **details will be presented in next few pages**




                                                     14
Multiprocessor Systems: 1/3
§ Multiprocessor systems have more than
  one CPUs.
§ Advantages:
  qIncreased throughput: gets more jobs done
  qEconomy of scale: Because of resource
   sharing, multiprocessor systems is cheaper
   than multiple single processor systems.
  qIncreased reliability: the failure of one
   processor will not halt the whole system.

                                                15
Multiprocessor Systems: 2/3
  Tightly Coupled Systems or Parallel Systems
§ Asymmetric Multiprocessing:
  qEach processor is assigned a specific task.
  qA master processor controls the system. The
   other processors either look to the master for
   instructions or have predefined tasks.
  qThus, this defines a master-slave
   relationship.
§ Symmetric Multiprocessing (SMP):
  qEach processor runs an identical copy of OS
  qThese copies communicate with each other.
                                                16
Multiprocessor Systems: 3/3
   Tightly Coupled Systems or Parallel Systems

§ Symmetric Multiprocessing (SMP):
  qEach processor performs all tasks within the OS
  qAll processors are peers; no master-slave
   relationship exists


       CPU        CPU                    CPU



                      memory

                                                 17
Clustered Systems
§ A clustered system has two or more individual systems
  connected by a local area network (LAN) or interconnection
  network.
§ The key of clustered system is high availability.
§ Asymmetric Clustering:
   qOne machine is in hot-standby mode while others are
     running applications.
   qThe hot-standby machine (i.e., does nothing but) monitors
     other machines and becomes active if one server fails.
§ Symmetric Clustering:
   qTwo or more hosts are running applications and monitor
     each other.
   qThis is more efficient as it uses all available hardware.
                                                        18
Operating-System Structure 1/4
§ Single User                                       OS
§ Multi-User
  q Multiprogrammed
  q Time-sharing systems                        User Program

 OS
 Job 1
 Job 2               terminal   terminal             terminal




                     User 1     User 2               User n

 Job n                                     OS              19
Operating-System Structure: 2/4
            Single User System
                    § Users submit programs to
      OS              an operator.
                    § Programs are batched.
                    § A job scheduler
                      determines which
                      program runs next.
 User Program       § Very inefficient because
                      the CPU is idle when the
                      running program is doing
                      I/O.

                                           20
Operating-System Structure: 3/4
    Multiprogrammed Systems

  OS          § Several programs may
                run in the system at the
  Job 1         same time.
              § A CPU scheduler selects
  Job 2         a job to use the CPU.
              § A job scheduler selects
  Job 3
                jobs to enter the system.
              § While a job is doing I/O,
                another can use the
                CPU. Thus, it is more
  Job n         efficient.
                                      21
Operating-System Structure: 4/4
            Time-Sharing Systems
                       § Users provide instructions
User        User         to the OS or programs
                         directly using a keyboard
                         or a mouse.
                       § The response time should
       System            be short.
                       § Thus, time-sharing systems
                         maximize usability while
                         batch systems maximize
User            User     resource usage.
                                                 22
Operating-System Operations

§ OS is interrupt driven
                               kernel
§ Dual Mode Operation
§ Timer                          interrupt
                                             service
                                  handler
                   interrupt
                                   mode change




                                    ADD #4, 3


                                                 23
Dual-Mode Operation
§ Modern CPUs have two execution modes: user
  mode and supervisor (or system, monitor,
  privileged) mode, controlled by a mode bit.
§ The OS runs in supervisor mode and all user
  programs run in user mode.
§ Some instructions that may do harm to the OS
  (e.g., doing I/O) are privileged instructions.
  Privileged instructions can only be used in the
  supervisor model.
§ When the control switches to the OS (resp., a
  user program), execution mode will be changed
  to supervisor (resp., user) mode.
                                                24
Timer
§ Because the operating system must maintain the
  control over the CPU, we must prevent a user
  program from getting the CPU forever or not
  calling system service.
§ Use an interval timer! An interval timer is a
  count-down timer.
§ Before a user program runs, the OS sets the
  interval timer to certain value. Once the
  interval timer counts down to 0, an interrupt is
  generated and the OS can make appropriate
  action.
                                                25
Distributed Systems: 1/3
§ A distributed system is a collection of physically
  separate, possible heterogeneous computer
  systems that are networked to provide the users
  with access to the various resources that the
  system maintains.
§ By being able to communicate, distributed
  systems are able to share computational tasks,
  and provide a rich set of features to users.



                                                   26
Distributed Systems: 2/3
§ A network operating system is an OS that
   qprovides features such as file sharing across
     the network
   qincludes a communication scheme that allows
     different processes running on different
     computers to exchange messages
§ A computer in a network operating system acts
  autonomously from all other computers on the
  network, although it is aware of the network and
  is able to communicate with other computers.
                                                27
Distributed Systems: 3/3
§ A distributed operating system is less
  autonomous.
§ Different operating systems communicate closely
  enough to provide the illusion that only a single
  operating system controls the network.




                                                 28
Client-Server Computing
§ Some systems are assigned as servers to satisfy
  requests generated by client systems.
§ Client-server systems are specialized distributed
  systems.
§ In general, there are two types of server systems
   qComputer-Server Systems: provide an interface to
    which clients can send requests to perform an action.
    Then, execute the action and send back the results.
   qFile-Server Systems: provide a file system interface
    where clients can create, update, read and delete files.

    client         client            client    client

             network
                            server                       29
Real-Time Operating Systems
§ A real-time operating system has well-defined,
  fixed time constraints.
§ Processing must be done within the defined
  constraints, or the system will fail.
§ Hard Real-Time Systems guarantee that critical
  tasks be completed on time.
§ Soft Real-Time Systems prioritize critical tasks.
  That is, a critical task get priority over other
  tasks, and retains that priority until it
  completes.
§ Embedded systems almost always run real-time
  operating systems.
                                                 30

Contenu connexe

Tendances

Operating System Concepts Presentation
Operating System Concepts PresentationOperating System Concepts Presentation
Operating System Concepts PresentationNitish Jadia
 
Operating system notes ch1
Operating system notes ch1Operating system notes ch1
Operating system notes ch1Emmanuel Damka
 
Basics of Operating System
Basics of Operating SystemBasics of Operating System
Basics of Operating SystemSoumit Ghosh
 
COMPUTER HARDWARE - SHORT NOTES
COMPUTER HARDWARE - SHORT NOTESCOMPUTER HARDWARE - SHORT NOTES
COMPUTER HARDWARE - SHORT NOTESsuthi
 
Concepts of o s chapter 1
Concepts of o s  chapter 1Concepts of o s  chapter 1
Concepts of o s chapter 1cathline44
 
Introduction to Operating System
Introduction to Operating SystemIntroduction to Operating System
Introduction to Operating Systempriya_sinha02
 
Operating system concepts
Operating system conceptsOperating system concepts
Operating system conceptsStarlee Lathong
 
Operating system Concepts
Operating system Concepts Operating system Concepts
Operating system Concepts RANVIJAY GAUR
 
Operating system notes
Operating system notesOperating system notes
Operating system notesSANTOSH RATH
 
System Z operating system
System Z operating systemSystem Z operating system
System Z operating systemArpana shree
 
Operating system
Operating systemOperating system
Operating systemmak120
 
Silberschatz / OS Concepts
Silberschatz /  OS Concepts Silberschatz /  OS Concepts
Silberschatz / OS Concepts Alanisca Alanis
 
Operating System BCA 301
Operating System BCA 301Operating System BCA 301
Operating System BCA 301cpjcollege
 

Tendances (19)

Operating System Concepts Presentation
Operating System Concepts PresentationOperating System Concepts Presentation
Operating System Concepts Presentation
 
Operating system notes ch1
Operating system notes ch1Operating system notes ch1
Operating system notes ch1
 
Basics of Operating System
Basics of Operating SystemBasics of Operating System
Basics of Operating System
 
COMPUTER HARDWARE - SHORT NOTES
COMPUTER HARDWARE - SHORT NOTESCOMPUTER HARDWARE - SHORT NOTES
COMPUTER HARDWARE - SHORT NOTES
 
Concepts of o s chapter 1
Concepts of o s  chapter 1Concepts of o s  chapter 1
Concepts of o s chapter 1
 
CS6401 Operating Systems
CS6401 Operating SystemsCS6401 Operating Systems
CS6401 Operating Systems
 
Introduction to Operating System
Introduction to Operating SystemIntroduction to Operating System
Introduction to Operating System
 
Operating system concepts
Operating system conceptsOperating system concepts
Operating system concepts
 
Operating System
Operating SystemOperating System
Operating System
 
Operating system notes pdf
Operating system notes pdfOperating system notes pdf
Operating system notes pdf
 
Operating system Concepts
Operating system Concepts Operating system Concepts
Operating system Concepts
 
Operating system notes
Operating system notesOperating system notes
Operating system notes
 
System Z operating system
System Z operating systemSystem Z operating system
System Z operating system
 
Operating system
Operating systemOperating system
Operating system
 
Ch1-Operating System Concept
Ch1-Operating System ConceptCh1-Operating System Concept
Ch1-Operating System Concept
 
Unit 1 introduction to operating system
Unit 1 introduction to operating systemUnit 1 introduction to operating system
Unit 1 introduction to operating system
 
Silberschatz / OS Concepts
Silberschatz /  OS Concepts Silberschatz /  OS Concepts
Silberschatz / OS Concepts
 
02.Os Structure
02.Os Structure02.Os Structure
02.Os Structure
 
Operating System BCA 301
Operating System BCA 301Operating System BCA 301
Operating System BCA 301
 

Similaire à 1 introduction

Similaire à 1 introduction (20)

Os
OsOs
Os
 
1 introduction
1 introduction1 introduction
1 introduction
 
Lecture - 1.pdf
Lecture - 1.pdfLecture - 1.pdf
Lecture - 1.pdf
 
OS ppt.pdf
OS ppt.pdfOS ppt.pdf
OS ppt.pdf
 
1.introduction
1.introduction1.introduction
1.introduction
 
1.Introduction
1.Introduction1.Introduction
1.Introduction
 
Unit I OS CS.ppt
Unit I OS CS.pptUnit I OS CS.ppt
Unit I OS CS.ppt
 
Module 1 Introduction.ppt
Module 1 Introduction.pptModule 1 Introduction.ppt
Module 1 Introduction.ppt
 
LM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsLM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system calls
 
Cs8493 unit 1
Cs8493 unit 1Cs8493 unit 1
Cs8493 unit 1
 
Michael snowhite1
Michael snowhite1Michael snowhite1
Michael snowhite1
 
Clifford sugerman
Clifford sugermanClifford sugerman
Clifford sugerman
 
OS-ch01-2024.ppt
OS-ch01-2024.pptOS-ch01-2024.ppt
OS-ch01-2024.ppt
 
Chap1
Chap1Chap1
Chap1
 
lecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categorieslecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categories
 
Os structure
Os structureOs structure
Os structure
 
operating system1.pdf
operating system1.pdfoperating system1.pdf
operating system1.pdf
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 
CH01.pdf
CH01.pdfCH01.pdf
CH01.pdf
 
Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)
 

Plus de Mohd Arif

Bootp and dhcp
Bootp and dhcpBootp and dhcp
Bootp and dhcpMohd Arif
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarpMohd Arif
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocolMohd Arif
 
Project identification
Project identificationProject identification
Project identificationMohd Arif
 
Project evalaution techniques
Project evalaution techniquesProject evalaution techniques
Project evalaution techniquesMohd Arif
 
Presentation
PresentationPresentation
PresentationMohd Arif
 
Pointers in c
Pointers in cPointers in c
Pointers in cMohd Arif
 
Peer to-peer
Peer to-peerPeer to-peer
Peer to-peerMohd Arif
 
Overview of current communications systems
Overview of current communications systemsOverview of current communications systems
Overview of current communications systemsMohd Arif
 
Overall 23 11_2007_hdp
Overall 23 11_2007_hdpOverall 23 11_2007_hdp
Overall 23 11_2007_hdpMohd Arif
 
Objectives of budgeting
Objectives of budgetingObjectives of budgeting
Objectives of budgetingMohd Arif
 
Network management
Network managementNetwork management
Network managementMohd Arif
 
Networing basics
Networing basicsNetworing basics
Networing basicsMohd Arif
 
Iris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platformIris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platformMohd Arif
 
Ip sec and ssl
Ip sec and  sslIp sec and  ssl
Ip sec and sslMohd Arif
 
Ip security in i psec
Ip security in i psecIp security in i psec
Ip security in i psecMohd Arif
 
Intro to comp. hardware
Intro to comp. hardwareIntro to comp. hardware
Intro to comp. hardwareMohd Arif
 

Plus de Mohd Arif (20)

Bootp and dhcp
Bootp and dhcpBootp and dhcp
Bootp and dhcp
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
 
Project identification
Project identificationProject identification
Project identification
 
Project evalaution techniques
Project evalaution techniquesProject evalaution techniques
Project evalaution techniques
 
Presentation
PresentationPresentation
Presentation
 
Pointers in c
Pointers in cPointers in c
Pointers in c
 
Peer to-peer
Peer to-peerPeer to-peer
Peer to-peer
 
Overview of current communications systems
Overview of current communications systemsOverview of current communications systems
Overview of current communications systems
 
Overall 23 11_2007_hdp
Overall 23 11_2007_hdpOverall 23 11_2007_hdp
Overall 23 11_2007_hdp
 
Objectives of budgeting
Objectives of budgetingObjectives of budgeting
Objectives of budgeting
 
Network management
Network managementNetwork management
Network management
 
Networing basics
Networing basicsNetworing basics
Networing basics
 
Loaders
LoadersLoaders
Loaders
 
Lists
ListsLists
Lists
 
Iris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platformIris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platform
 
Ip sec and ssl
Ip sec and  sslIp sec and  ssl
Ip sec and ssl
 
Ip security in i psec
Ip security in i psecIp security in i psec
Ip security in i psec
 
Intro to comp. hardware
Intro to comp. hardwareIntro to comp. hardware
Intro to comp. hardware
 
Heap sort
Heap sortHeap sort
Heap sort
 

Dernier

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 

Dernier (20)

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

1 introduction

  • 1. Part I Overview Chapter 1: Introduction 1
  • 2. What is an Operating System? § A computer system can be roughly divided into the hardware, the operating system, the application programs, and the users. § The hardware (i.e., CPU, memory, I/O devices) provides the basic computing resources. § The application programs (e.g., web browsers, word processors, and compilers) are used to solve user problems. § The operating system controls and coordinates the use of hardware among various application programs. 2
  • 3. User View § PC Users: an operating system is a program that provides an easy-to-use interface for using the hardware. § Mainframe/Minicomputer Users: an operating system is a program that helps maximize the system resource utilization. § Workstation Users: an operating system is a program designed to compromise between individual usability and resource utilization. 3
  • 4. System View § A Resource Manager: the operating system allocates and reclaims the system hardware resources to and from user programs. § A Control Program: the operating system controls the execution of user programs to prevent errors and improper use of the computer. § There is no universal definition of what is an operating system. A common definition is that the operating system is the one program running at all times on the computer (i.e., the kernel). All other programs are application programs. 4
  • 5. The Goals of an Operating System § Primary Goal: efficient operation of the computer system. § In some systems, it is easy of use. § In general, efficiency is far more important than easy of use. 5
  • 6. Computer-System Organization § Computer-System Operation § Storage Structure (von Neumann architecture): • CPU-Memory • Fetch-decode-execute-store § I/O structure § More on the next few slides 6
  • 7. Computer System Operation tapes disk printer § How does printer the OS get disk into system? § How do we Printer Tape Disk request for CPU Controller Controller Controller services? § How does system bus the OS know something Memory Controller has happened? Memory 7
  • 8. Storage Hierarchy slower and reg. faster and larger volume more expansive cache main mem. electronic disk magnetic disk optical disk magnetic tape 8
  • 9. I/O Structure a typical PCI bus structure 9
  • 10. Interrupt and Trap § An event that requires the attention of the OS is an interrupt. These events include the completion of an I/O, a keypress, a request for service, a division by zero and so on. § Interrupts may be generated by hardware or software. § An interrupt generated by software (i.e., division by 0) is usually referred to as a trap. § Modern operating systems are interrupt driven, meaning the OS is in action only if an interrupt occurs. 10
  • 11. What is Interrupt-Driven? kernel § The OS is activated by an interrupt interrupt. service handler § The executing interrupt program is mode switch suspended. § Control is transferred to the OS. § Program ADD #4, 3 continues when the service completes. 11
  • 12. I/O Interrupt CPU I/O Controller device driver initiates I/O initiates I/O receives interrupt calls interrupt handler done processes data raises interrupt and returns resumes the Interrupt task 12
  • 13. Direct Memory Access qFor large volume data transfer, most systems use direct memory access to avoid burdening the CPU. qThe CPU gives the controller (1) disk address, (2) memory address for storing the block, and (3) a byte count. Then, the CPU goes back to work. 13
  • 14. Computer-System Architecture § Single-Processor Systems § Multiprocessor Systems § Clustered Systems **details will be presented in next few pages** 14
  • 15. Multiprocessor Systems: 1/3 § Multiprocessor systems have more than one CPUs. § Advantages: qIncreased throughput: gets more jobs done qEconomy of scale: Because of resource sharing, multiprocessor systems is cheaper than multiple single processor systems. qIncreased reliability: the failure of one processor will not halt the whole system. 15
  • 16. Multiprocessor Systems: 2/3 Tightly Coupled Systems or Parallel Systems § Asymmetric Multiprocessing: qEach processor is assigned a specific task. qA master processor controls the system. The other processors either look to the master for instructions or have predefined tasks. qThus, this defines a master-slave relationship. § Symmetric Multiprocessing (SMP): qEach processor runs an identical copy of OS qThese copies communicate with each other. 16
  • 17. Multiprocessor Systems: 3/3 Tightly Coupled Systems or Parallel Systems § Symmetric Multiprocessing (SMP): qEach processor performs all tasks within the OS qAll processors are peers; no master-slave relationship exists CPU CPU CPU memory 17
  • 18. Clustered Systems § A clustered system has two or more individual systems connected by a local area network (LAN) or interconnection network. § The key of clustered system is high availability. § Asymmetric Clustering: qOne machine is in hot-standby mode while others are running applications. qThe hot-standby machine (i.e., does nothing but) monitors other machines and becomes active if one server fails. § Symmetric Clustering: qTwo or more hosts are running applications and monitor each other. qThis is more efficient as it uses all available hardware. 18
  • 19. Operating-System Structure 1/4 § Single User OS § Multi-User q Multiprogrammed q Time-sharing systems User Program OS Job 1 Job 2 terminal terminal terminal User 1 User 2 User n Job n OS 19
  • 20. Operating-System Structure: 2/4 Single User System § Users submit programs to OS an operator. § Programs are batched. § A job scheduler determines which program runs next. User Program § Very inefficient because the CPU is idle when the running program is doing I/O. 20
  • 21. Operating-System Structure: 3/4 Multiprogrammed Systems OS § Several programs may run in the system at the Job 1 same time. § A CPU scheduler selects Job 2 a job to use the CPU. § A job scheduler selects Job 3 jobs to enter the system. § While a job is doing I/O, another can use the CPU. Thus, it is more Job n efficient. 21
  • 22. Operating-System Structure: 4/4 Time-Sharing Systems § Users provide instructions User User to the OS or programs directly using a keyboard or a mouse. § The response time should System be short. § Thus, time-sharing systems maximize usability while batch systems maximize User User resource usage. 22
  • 23. Operating-System Operations § OS is interrupt driven kernel § Dual Mode Operation § Timer interrupt service handler interrupt mode change ADD #4, 3 23
  • 24. Dual-Mode Operation § Modern CPUs have two execution modes: user mode and supervisor (or system, monitor, privileged) mode, controlled by a mode bit. § The OS runs in supervisor mode and all user programs run in user mode. § Some instructions that may do harm to the OS (e.g., doing I/O) are privileged instructions. Privileged instructions can only be used in the supervisor model. § When the control switches to the OS (resp., a user program), execution mode will be changed to supervisor (resp., user) mode. 24
  • 25. Timer § Because the operating system must maintain the control over the CPU, we must prevent a user program from getting the CPU forever or not calling system service. § Use an interval timer! An interval timer is a count-down timer. § Before a user program runs, the OS sets the interval timer to certain value. Once the interval timer counts down to 0, an interrupt is generated and the OS can make appropriate action. 25
  • 26. Distributed Systems: 1/3 § A distributed system is a collection of physically separate, possible heterogeneous computer systems that are networked to provide the users with access to the various resources that the system maintains. § By being able to communicate, distributed systems are able to share computational tasks, and provide a rich set of features to users. 26
  • 27. Distributed Systems: 2/3 § A network operating system is an OS that qprovides features such as file sharing across the network qincludes a communication scheme that allows different processes running on different computers to exchange messages § A computer in a network operating system acts autonomously from all other computers on the network, although it is aware of the network and is able to communicate with other computers. 27
  • 28. Distributed Systems: 3/3 § A distributed operating system is less autonomous. § Different operating systems communicate closely enough to provide the illusion that only a single operating system controls the network. 28
  • 29. Client-Server Computing § Some systems are assigned as servers to satisfy requests generated by client systems. § Client-server systems are specialized distributed systems. § In general, there are two types of server systems qComputer-Server Systems: provide an interface to which clients can send requests to perform an action. Then, execute the action and send back the results. qFile-Server Systems: provide a file system interface where clients can create, update, read and delete files. client client client client network server 29
  • 30. Real-Time Operating Systems § A real-time operating system has well-defined, fixed time constraints. § Processing must be done within the defined constraints, or the system will fail. § Hard Real-Time Systems guarantee that critical tasks be completed on time. § Soft Real-Time Systems prioritize critical tasks. That is, a critical task get priority over other tasks, and retains that priority until it completes. § Embedded systems almost always run real-time operating systems. 30