introduction to operating system
TRANSCRIPT
![Page 1: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/1.jpg)
1
OPERATING OPERATING SYSTEMSSYSTEMS
![Page 2: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/2.jpg)
2
CONTENTS
1.1. What is an Operating System?What is an Operating System?2.2. OS FunctionsOS Functions3.3. OS ServicesOS Services4.4. Structure of OSStructure of OS5.5. Evolution of OSEvolution of OS
![Page 3: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/3.jpg)
3
SOFTWARE CLASSIFICATION
![Page 4: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/4.jpg)
4
WHAT IS OS?It is the software that enables all the programs we use.
The OS organizes and controls the hardware (CPU, RAM, I/O)
Security
System interface
Application interface
OS acts as an interface between the application programs and the machine hardware.
![Page 5: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/5.jpg)
5
Operating System SoftwareExamples: Microsoft Windows, Linux, Unix, Mac OS X, iOS, Android.
![Page 6: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/6.jpg)
6
What is an operating system (OS)?
![Page 7: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/7.jpg)
7
OS FUNCTIONSThe main functions of operating systems are:
• Manages and Interacts with Computer Hardware• Process the tasks • Provides the User/ Computer Interface (CLI / GUI)• Provides the Interface for Application Software • Input / Output Operations• Error Detection, Resource Allocation, Security and
Protection
![Page 8: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/8.jpg)
8
OS SERVICES
Operating system services such as,
• Input / Output Operations ,Controlling and Allocating memory,
• Work as a Resource Allocator ,Prioritizing system requests, File System Manipulation, Error Detection,
• Controlling input and output devices, Communication• Managing file systems, protection• CPUs have this capability to use at least two modes:
protected mode and supervisor mode.
![Page 9: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/9.jpg)
9
Manages the CPU
- by CPU scheduling algorithms.
Manages RAM
- What is processing in RAM - Virtual memory.
Provides the Interface for Application Software
-Operating systems are designed and developed for a specific CPU or “family of CPUs”
![Page 10: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/10.jpg)
10
Provides the interface for storage devices and manages how data is stored on those devices.
Provides the Interface for I/O Devices
• device drivers• keyboard, mouse, printer
![Page 11: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/11.jpg)
11
VIRTUAL MEMORY
Virtual Memory (VM) = the ability of the CPU and the operating system software to use the hard disk drive as additional RAM when needed.
Good – no longer get “insufficient memory” error.
Bad - performance is very slow when accessing VM.
Solution = increase size of RAM.
![Page 12: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/12.jpg)
12
VIRTUAL MEMORY
![Page 13: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/13.jpg)
13
PROCESSESScheduler – Maintains a record of the processes.
• Adds new processes when launched.
• Removes old processes when completed.
• Uses a process table.
Process Table – Information about each process including:
• Main memory cells (RAM)• Priority• Running or waiting (input from
user or saving to disk)
![Page 14: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/14.jpg)
14
Viewing processes with Microsoft Windows
Ending a process – Killing the process
![Page 15: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/15.jpg)
15
PROCESSESDispatcher - Oversees the execution of each process by the CPU.
• Gives each process a time slice of CPU time.
• Changes between processes.
![Page 16: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/16.jpg)
16
MULTIPROCESSING WITH MULTIPLE CPU’S
Asymmetric Multiprocessing = Tasks are assigned to a specific CPU and each CPU has its own RAM memory
Symmetric Multiprocessing = Tasks are assigned to any available CPU and CPU’s can share RAM memory
Rick Graziani [email protected] 16
![Page 17: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/17.jpg)
17
STRUCTURE OF OPERATING SYSTEM:
Application Programs
System Programs
Software (Operating System)
HARDWARE
![Page 18: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/18.jpg)
18
STRUCTURE OF OPERATING SYSTEM
The structure of OS consists of 4 layers:
1. Hardware Hardware consists of CPU, Main
memory, I/O Devices, etc,
2. Software (Operating System) Software includes process management
routines, memory management routines, I/O control routines, file management routines.
![Page 19: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/19.jpg)
19
STRUCTURE OF OPERATING SYSTEM
3. System programs
This layer consists of compilers, Assemblers, linker etc.
4. Application programs
This is dependent on users need. Ex. Railway reservation system, Bank database management etc.,
![Page 20: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/20.jpg)
20
EVOLUTION OF OS:
Evolution of an OS from simple Batch processing to today’s OS-
• Batch Operating System• Multiprogramming Operating System• Time Sharing or Multitasking Operating System• Real-Time Systems• Distributed Operating System
![Page 21: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/21.jpg)
21
BATCH PROCESSING:• In Batch processing same type of jobs batch (BATCH- a
set of jobs with similar needs) together and execute at a time.
• The OS was simple, its major task was to transfer control from one job to the next.
• The job was submitted to the computer operator in form of punch cards. At some later time the output appeared.
• The OS was always resident in memory.
• Common Input devices were card readers and tape drives.
![Page 22: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/22.jpg)
22
Common output devices were line printers, tape drives, and card punches.
Users did not interact directly with the computer systems, but he prepared a job (comprising of the program, the data, & some control information).
OS
User program area
![Page 23: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/23.jpg)
23
MULTIPROGRAMMING:
• Multiprogramming is a technique to execute number of programs simultaneously by a single processor.
• In Multiprogramming, number of processes reside in main memory at a time.
• The OS picks and begins to executes one of the jobs in the main memory.
• If any I/O wait happened in a process, then CPU switches from that job to another job.
• Hence CPU in not idle at any time.
![Page 24: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/24.jpg)
24
MULTIPROGRAMMING
OS
Job 1
Job 2
Job 3
Job 4
Job 5
• Figure dipicts the layout of multiprogramming system.
• The main memory consists of 5 jobs at a time, the CPU executes one by one.
Advantages:
•Efficient memory utilization
•Throughput increases
•CPU is never idle, so performance increases.
![Page 25: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/25.jpg)
25
TIME SHARING SYSTEMS:
• Time sharing, or multitasking, is a logical extension of multiprogramming.
• Multiple jobs are executed by switching the CPU between them.
• In this, the CPU time is shared by different processes, so it is called as “Time sharing Systems”.
• Time slice is defined by the OS, for sharing CPU time between processes.
• Examples: Unix.
![Page 26: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/26.jpg)
26
PROCESS STATES FOR TIME SHARING
Ready Running
Blocked
New Job Execution Terminated
Wait for I/O CompletionI/O Completed
Time Slice over
![Page 27: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/27.jpg)
27
REAL-TIME SYSTEMS:
• A real-time operating system is a multitasking operating system intended for applications with fixed deadlines.
• Such applications include some small embedded systems, automobile engine controllers, industrial robots, spacecraft, industrial control, and some large-scale computing systems.
• An early example of a large-scale real-time operating system was Transaction Processing Facility developed by American Airlines and IBM for the Sabre Airline Reservations System.
![Page 28: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/28.jpg)
28
These are of two types: a) Hard Real Time,
b) Soft Real Time.
a) These OS guarantee that critical tasks be completed within a certain range of time.
Ex: A complete car welding by robot hardly on the time.
a) These OS provides some relaxation in time limit.
Ex: Multimedia systems, digital audio system.
![Page 29: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/29.jpg)
29
DISTRIBUTED SYSTEMS:
• A distributed computer system is a collection of autonomous computer systems capable of communication and cooperation via their H/w and S/w interconnection.
• The distributed operating system provides a illusion to its users that it has a single uniprocessor system, although it is actually consisted of multiprocessors.
• Distributed OS provide the means for system-wide sharing of resources such as computational capacity, files and I/O devices.
• Ex: UNIX, LINUX.
![Page 30: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/30.jpg)
30
SUMMARY• HOW AN OS WORKS
Interpreting commands, enabling the user to communicate with the computer.
• OS IS SOFTWARE
• COMPUTER WORKS WITH THE HELP OF OSWhen a computer is turned on it searches for
instructions in its memory. These instructions tell the computer how to start up. Usually, one of the first sets of these instructions is a special program called the operating system .
![Page 31: Introduction to Operating System](https://reader035.vdocuments.us/reader035/viewer/2022062704/55583e66d8b42acb078b4ddf/html5/thumbnails/31.jpg)
31
Thanks