chapter 1 introduction - github pages · what is an operating system (1) a modern computer consists...
TRANSCRIPT
![Page 1: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/1.jpg)
MODERN OPERATING SYSTEMS Third Edition
ANDREW S. TANENBAUM
Chapter 1 Introduction
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 2: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/2.jpg)
What Is An Operating System (1)
A modern computer consists of:
• One or more processors• Main memory• Disks• Printers• Various input/output devices
Managing all these components requires a layer of software – the operating system
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 3: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/3.jpg)
What Is An Operating System (2)
Figure 1-1. Where the operating system fits in.
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 4: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/4.jpg)
The Operating System as an Extended Machine
Figure 1-2. Operating systems turn ugly hardware into beautiful abstractions.
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 5: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/5.jpg)
The Operating System as a Resource Manager
• Allow multiple programs to run at the same time• Manage and protect memory, I/O devices, and
other resources• Includes multiplexing (sharing) resources in two
different ways: • In time• In space
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 6: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/6.jpg)
Figure 1-5. A multiprogramming system with three jobs in memory.
ICs and Multiprogramming
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 7: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/7.jpg)
Computer Hardware Review
Figure 1-6. Some of the components of a simple personal computer.
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 8: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/8.jpg)
Figure 1-8. (a) A quad-core chip with a shared L2 cache. (b) A quad-core chip with separate L2 caches.
Multithreaded and Multicore Chips
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 9: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/9.jpg)
Figure 1-9. A typical memory hierarchy. The numbers are very rough approximations.
Memory (1)
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 10: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/10.jpg)
Figure 1-10. Structure of a disk drive.
Disks
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 11: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/11.jpg)
Figure 1-11. (a) The steps in starting an I/O device and getting an interrupt.
I/O Devices
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 12: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/12.jpg)
Buses
The bus structure of a modern Pentium 4.
![Page 13: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/13.jpg)
![Page 14: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/14.jpg)
![Page 15: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/15.jpg)
The Operating System Zoo
• Mainframe operating systems• Server operating systems• Multiprocessor operating systems• Personal computer operating systems• Handheld operating systems• Embedded operating systems• Sensor node operating systems• Real-time operating systems• Smart card operating systems
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 16: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/16.jpg)
• Processes• Address spaces• Files• Input/Output• Protection• Ontogeny recapitulates phylogeny
• Large memories• Protection hardware• Disks• Virtual memory
Operating System Concepts
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 17: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/17.jpg)
Processes
Figure 1-13. A process tree. Process A created two child processes, B and C. Process B created three child
processes, D, E, and F.
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 18: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/18.jpg)
Figure 1-14. A file system for a university department.
Files (1)
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 19: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/19.jpg)
Figure 1-15. (a) Before mounting, the files on the CD-ROM are not accessible. (b) After mounting, they are part of the file hierarchy.
Files (2)
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 20: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/20.jpg)
Figure 1-16. Two processes connected by a pipe.
Files (3)
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 21: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/21.jpg)
Figure 1-17. The 11 steps in making the system call read(fd, buffer, nbytes).
System Calls
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 22: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/22.jpg)
Figure 1-18. Some of the major POSIX system calls.
System Calls for Process Management
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 23: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/23.jpg)
Figure 1-18. Some of the major POSIX system calls.
System Calls for File Management (1)
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 24: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/24.jpg)
Figure 1-18. Some of the major POSIX system calls.
System Calls for File Management (2)
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 25: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/25.jpg)
Figure 1-18. Some of the major POSIX system calls.
Miscellaneous System Calls
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 26: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/26.jpg)
Figure 1-20. Processes have three segments: text, data, and stack.
Memory Layout
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
![Page 27: Chapter 1 Introduction - GitHub Pages · What Is An Operating System (1) A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various](https://reader034.vdocuments.mx/reader034/viewer/2022042109/5e893fd150b4ec531d062ba3/html5/thumbnails/27.jpg)
Figure 1-23. The Win32 API calls that roughly correspond to the UNIX calls of Fig. 1-18.
Windows Win32 API
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639