operating systems
DESCRIPTION
Operating Systems. Operating Systems. Unit 1: OS objectives Mode of operation Components Architecture Linux Windows XP. What Is an Operating System?. Computer = set of able resources processor(s), memory, I/O & communication devices OS enables use of resources manages resources - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/1.jpg)
Operating Systems
Unit 1:– OS objectives– Mode of operation– Components– Architecture– Linux– Windows XP
Operating Systems
![Page 2: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/2.jpg)
COP 4994 - Operating Systems 2
What Is an Operating System?
• Computer = set of able resources– processor(s), memory, I/O & communication
devices• OS
– enables use of resources– manages resources
• resources not limited to hardware• shift from:
– pure efficient use of resources to– enhance user experience
![Page 3: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/3.jpg)
COP 4994 - Operating Systems 3
Mode of operation• Kernel:
– substance, core, center, essence, gist, heart, heart and soul, inwardness, marrow, meat, nub, pith, sum, nitty-gritty
• pieces of software that perform OS tasks
• has privileged access to resources
![Page 4: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/4.jpg)
COP 4994 - Operating Systems 4
Terminology• kernel mode or kernel space
• user mode or user space
• system call: – user mode program invokes kernel
mode functionality
![Page 5: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/5.jpg)
COP 4994 - Operating Systems 5
Operating System Components
• Processor scheduler• Memory manager• I/O manager• Interprocess communication
manager• File system manager
![Page 6: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/6.jpg)
COP 4994 - Operating Systems 6
Operating System Architectures
• Operating systems tend to be complex– Provide many services – Support variety of hardware and software– Operating system architectures help
manage this complexity• Organize operating system components• Specify privilege with which each component
executes
![Page 7: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/7.jpg)
COP 4994 - Operating Systems 7
Operating System Architectures
• monolithic• layered• micro-kernel• distributed
![Page 8: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/8.jpg)
COP 4994 - Operating Systems 8
Monolithic Architecture• Monolithic operating system
– Every component contained in kernel• direct communication among all elements• highly efficient
– Problems:• complexity• new devices, emerging technologies
– enabling, protection
![Page 9: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/9.jpg)
COP 4994 - Operating Systems 9
Monolithic Architecture
![Page 10: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/10.jpg)
COP 4994 - Operating Systems 10
Layered Architecture• Groups components that perform
similar functions into layers• Each layer communicates only
with adjacent layer• System calls might pass through
many layers before completion
![Page 11: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/11.jpg)
COP 4994 - Operating Systems 11
Layered Architecture
![Page 12: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/12.jpg)
COP 4994 - Operating Systems 12
Microkernel Architecture• Microkernel
– provides only small number of services– attempt to keep kernel small and
scalable• High degree of modularity
• Extensible, portable and scalable• Increased level of inter-module
communication
![Page 13: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/13.jpg)
COP 4994 - Operating Systems 13
Microkernel Architecture
![Page 14: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/14.jpg)
COP 4994 - Operating Systems 14
Distributed Operating Systems
• Network operating system– Runs on one computer but allows its
processes to access remote resources
• Distributed operating system– Single OS manages resources on more
than one computer
![Page 15: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/15.jpg)
COP 4994 - Operating Systems 15
Distributed Operating Systems
![Page 16: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/16.jpg)
COP 4994 - Operating Systems 16
Linux Kernel Architecture• Monolithic kernel:
Contains modular components– Process management– Interprocess communication– Memory management– File system management
• VFS: provides a single file system interface– I/O management– Networking
![Page 17: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/17.jpg)
COP 4994 - Operating Systems 17
Linux Kernel Architecture
![Page 18: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/18.jpg)
COP 4994 - Operating Systems 18
Loadable Kernel Modules• Enables code to be loaded on
demand• Reduces the kernel’s memory footprint
– Kmod: a kernel subsystem that manages modules without user intervention• Determines module dependencies and loads
and unloads them on demand – Problem: kernel and module versions
![Page 19: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/19.jpg)
COP 4994 - Operating Systems 19
• Modified microkernel – has layers– has modular components within layer
– Microkernel• Basic system mechanisms• Thread scheduling, interrupt dispatching, etc.• Abstracts hardware specifics that differ
between architectures
Windows XP Kernel Architecture
![Page 20: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/20.jpg)
COP 4994 - Operating Systems 20
Windows XP Kernel Architecture
![Page 21: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/21.jpg)
COP 4994 - Operating Systems 21
• Executive– main operating system subsystems
• Environment subsystems– Provide a specific computing
environment for user-mode processes:– Examples: Win32, SFU, WOW64
Windows XP Kernel Architecture
![Page 22: Operating Systems](https://reader035.vdocument.in/reader035/viewer/2022062816/56814c80550346895db99e1a/html5/thumbnails/22.jpg)
COP 4994 - Operating Systems 22
Agenda for next week:
• Chapter 3: Process Concepts• Chapter 4: Thread Concepts
• Read ahead !