operating system design - florida atlantic universitytami/cop4610m2slides.pdf · operating systems...
TRANSCRIPT
![Page 1: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/1.jpg)
COP 4610
Operating systemsModule 2
Operating System Design
PART I
1Tami Sorgente
![Page 2: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/2.jpg)
MODULE 2 – OPERATING SYSTEM DESIGN
OS services
OS design goals
2Tami Sorgente
![Page 3: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/3.jpg)
OS DESIGN – OS SERVICES
User Interface
o Command-Line, GUI, batch, touchscreen
Program Execution
I/O Operations
File system manipulation
Communications
a) Message passing
b) Shared memory
Error detection
3Tami Sorgente
![Page 4: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/4.jpg)
OS DESIGN – OS SERVICES CONT
Ensuring efficient operation
o Resource allocation
o Accounting
o Protection and security Protection involves ensuring that all access to system resources
is controlled
Security of the system from outsiders requires user authentication, extends to defending external I/O devices from invalid access attempts
Policy vs Mechanism
o Policy(WHAT)- Mechanism (HOW)
4Tami Sorgente
![Page 5: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/5.jpg)
OPERATING SYSTEM DESIGN
AND IMPLEMENTATION
Start by defining goals and specifications
Affected by choice of hardware, type of system
User goals and System goals
o User goals – operating system should be convenient to use, easy to learn, reliable, safe, and fast
o System goals – operating system should be easy to design, implement, and maintain, as well as flexible, reliable, error-free, and efficient
5Tami Sorgente
![Page 6: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/6.jpg)
COP 4610
Operating systemsModule 2
Operating System Structure
PART II
6Tami Sorgente
![Page 7: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/7.jpg)
MODULE 2 – OPERATING SYSTEM DESIGN
OS structure
Virtual machine
Types of computer systems
System call examples
7Tami Sorgente
![Page 8: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/8.jpg)
VIEW OF OS SERVICES
8Tami Sorgente
![Page 9: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/9.jpg)
OS DESIGN – OS STRUCTURE
General-purpose OS is very large
Various ways to structure one as follows:
o Monolithic/ simple structure
o Layered approach
o Microkernel
o Modular
o Hybrid
9Tami Sorgente
![Page 10: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/10.jpg)
OS DESIGN – OS STRUCTURE
Layered
o Clearly defined interfaces
o Strict structure
o Each uses service of lower layers
10Tami Sorgente
![Page 11: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/11.jpg)
OS DESIGN – OS STRUCTURE
11
Microkernelo Small kernel –
o Move services to user space
o Benefits: Easier to extend a microkernel
Easier to port the operating system to new architectures
More reliable (less code is running in kernel mode)
o Detriments: Performance overhead of user space to kernel space
communication
Application
Program
File
System
Device
Driver
Interprocess
Communication
memory
managment
CPU
scheduling
messagesmessages
microkernel
hardware
user
mode
kernel
mode
Tami Sorgente
![Page 12: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/12.jpg)
OS DESIGN – OS STRUCTURE
Modular
o Uses object-oriented approach
o Each core component is separate
o Clearly defined interfaces
o Each is loadable as needed within the kernel
o Overall, similar to layers but with more
flexible
Hybrid structure
12Tami Sorgente
![Page 13: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/13.jpg)
OS DESIGN – OS STRUCTURE
Modular vs Layered
13Tami Sorgente
![Page 14: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/14.jpg)
VIRTUAL MACHINE
Advantages – users/ developers
o Isolation, testing
Disadvantages – implementation
14Tami Sorgente
![Page 15: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/15.jpg)
COMPUTER SYSTEMS
Traditional
Interactive vs batch
Real time/ (hard vs soft)
Mobile
Multiprocessor
Clustered
Distributed
Network Operating System
15Tami Sorgente
![Page 16: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/16.jpg)
SYSTEM CALLS
Programming interface to the services provided by the OS
Typically written in a high-level language
Mostly accessed by programs via a high-level Application Program Interface (API) rather than direct system call use
Most details of OS interface hidden from
programmer by API
16Tami Sorgente
![Page 17: Operating System Design - Florida Atlantic Universitytami/COP4610M2Slides.pdf · Operating systems Module 2 Operating System Structure PART II Tami Sorgente 6. MODULE 2 –OPERATING](https://reader034.vdocuments.net/reader034/viewer/2022042801/5ac566aa7f8b9a2b5c8d94e1/html5/thumbnails/17.jpg)
EXAMPLES OF
WINDOWS/ UNIX SYSTEM CALLS
17Tami Sorgente