OS Chapter 1
OS Chapter 1
Hardware:-
•Physical device is a collection of computer system which is called
Hardware.
For example:
– Compiler
– Operating system
– Interpreter
– Linker
– Loader
Utility Software
• The software, which provide an additional meaning to the
computer system.
For Example:-
– Calculator
– MS-paint
– Browser
– Notepad
– Media Player
Application Software
• The software which is created by users, using the different high
level language and database system for any special purpose.
For Example:-
– Library Management system
– Banking Software
– Ticket Reservation system
What is an Operating System?
• An operating system (OS) is a collection of system software that
manages computer hardware resources and provides common
services for computer programs.
OR
Windows 10
Examples of Personal Computer Operating Systems
Mac OS
• Mac OS is a line of operating systems created by Apple.
• The advantages of Linux are that it is free, and there are many
different distributions or versions you can choose from.
Examples of Personal Computer Operating Systems
linux
Batch OS (Source)
SIMPLE BATCH SYSTEMS
Advantages
• Increased performance - next job start as the previous job
finished.
• Suitable for executing large jobs that need little interaction
Disadvantages
• Zero interaction between user and computer.
• No mechanism to prioritize processes.
Multiprogramming Batch Operating System
• Several jobs are kept in main
memory at the same time, and the
CPU is multiplexed among them.
Multiprogramming Batch Operating System
•Multiprogramming increases CPU utilization
•Multiple jobs are loaded into main memory and one is selected from
pool for execution by CPU
Multiprogramming (Source)
Multiprogramming Batch Operating System
Effects of Multiprogramming
• This gives each user the impression that the entire computer is
dedicated to his use only, whereas actually one computer is being
shared among many users.
Multitasking/Time Sharing System(TSS)
Advantages
• Provides Quick Response
• Reduces CPU idle time
Disadvantages
• Security & Integrity of user’s program & data is needed.
• If lots of users & applications are running then it may hang up the
system. So, high configuration of hardware is required.
Multiprocessor/Parallel System
• Multiprocessor systems with more than one CPU works in close
communication.
• Increased reliability: The failure of one processor will not stop the
system, it functions with other available processors.
Real Time System
• A real-time operating system (RTOS) promises a certain capability
within a specified time constraint.
• If the system fails to meet the deadline even once the system is
considered to have Failed.
• It is less restrictive type of OS. even if the system fails to meet the
deadline, the system is not considered to have failed. In this case
the results of the requests are not worthless.
Distributed OS (Source)
Distributed System
Advantages
• Resources Sharing
• Computation speed up due to load sharing . So, Short response
time and higher throughput.
• Higher Reliability: Degree of tolerance against failure
• Incremental Growth : to extend functionality of a system by simply
adding additional resources to the system
Operating System Services
Operating System Services
• User Interface: Almost all operating systems have a user interface (UI).
Varies between Command-Line (CLI), Graphics User Interface (GUI),
Batch Interfaces
• I/O operations: A running program may require I/O, which may involve a
file or an I/O device, user programs cannot execute I/O operations
directly, the operating system must provide some means to do I/O.
Operating System Services
• File-system manipulation: Programs need to read and write files
and directories, create and delete them, search them, list file
Information, permission management; allow or deny access to
files/directories based on file ownership.
• Accounting: To keep track of which users use how much and what
kinds of computer resources. Used for accounting or usage
statistics.
Some Additional OS Services
• Protection involves ensuring that all access to system resources is
controlled
• Advantage is simplicity of
construction and debugging.
• The main difficulty is defining the
various layers.
• The main disadvantage is that
the OS tends to be less efficient
than other implementations
Operating System Layers (Source)
Operating System Structure - Components
• Process Management
• Main Memory Management
• File Management
• I/O System Management
• Secondary Management
• Networking
• Protection System
• Command-Interpreter System
Process Management
• A process is a program in execution. A process needs certain
resources, including CPU time, memory, files, and I/O devices, to
accomplish its task.
Disadvantage
• It has poor performance due to increased system overhead of
message passing.
Virtual Machine
• Virtual machine does abstract
the hardware of a single
computer (the CPU, Memory,
Disk drives, Network Interface
Cards, and so forth) into
several different execution
environments and thereby
creating the illusion that each
separate execution
environment is running its
own PC/environment.
Virtual Machine
• Virtual Machine(VM) is also known as a guest machine, which is
created within another computing environment known as a
“host”.