Null
Null
INTRODUCTION
Syllabus
Basic concepts
Software:-
• Program is a collection of code/instruction.
• Software is a collection of program.
Hardware:-
• Physical device is a collection of computer system which
is called Hardware.
• For example:-processor, RAM,HD,I/O devices.
Types of Software:
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
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
• Banking Software
What
is an
Operating
System?
Definition
11
History/Generations of Operating
Systems
The First Generation ( 1945 - 1955 ): Vacuum Tubes and
Plugboards
• Multiple jobs are loaded into main memory and one is selected
from pool for execution by CPU
• Advantages
1. CPU is never idle, if there are jobs available. So, High CPU
utilization.
2. It appears that many programs are allotted CPU almost
simultaneously.
3. Provides better resource utilization (Memory, I/O, CPU)
4. User can execute more then one process simultaneously.
• Disadvantages
1. CPU scheduling is required.
2. To accommodate many jobs in memory, memory
management is required.
Multitasking/Time Sharing
System(TSS)
• Multiprogramming does not support interaction with
users
• TSS extends multiprogramming to handle multiple
interactive jobs
• TSS uses CPU scheduling & multiprogramming to
provide economical interactive systems of two or more
users.
• Each user is given a time-slice for executing his job in
Round-Robin Fashion ( Every process will be given equal
amount of CPU one by one in sequence). Job continues
until the time slice ends.
Cont.
• Advantages:
1. Provides Quick Response
2. Reduces CPU idle time much more
• Disadvantages:
1. Security & Integrity of user’s program & data is
needed.
2. If lots of users & applications are running then it may
hang up the system. So, high specification of hardware
is needed to over come this problem.
38
Multiprocessor/Parallel System.
39
Cont.
42
Cont.
45
Cont.
53
System Calls
Kernel Mode
• When CPU is in kernel mode, the code being
executed can access any memory address and any hardware
resource.
• Hence kernel mode is a very privileged and powerful mode.
• If a program crashes in kernel mode, the entire system will be
halted.
User Mode
• When CPU is in user mode, the programs don't have direct
access to memory and hardware resources.
• In user mode, if any program crashes, only that particular
program is halted. That means the system will be in a safe state
System Calls
• System call is a request made by user program in order
to get the service of an operating system.
56
Some System Calls For File
Management
57
Some System Calls For Directory
Management
58
Some System Calls For
Miscellaneous Tasks
59
Operating System layered structure
With the layered approach,
the bottom layer is the
hardware, while the highest
layer is the user interface.
The main 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 Structure -
Components
• Process Management
• Main Memory Management
• File Management
• I/O System Management
• Secondary Management
• Networking
• Protection System
• Command-Interpreter System
62
Process Management
65
I/O System Management
66
Secondary-Storage Management
69
Command-Interpreter System
Disadvantages
They are not as efficient as a physical computer because the
hardware resources are distributed in an indirect way.
Multiple VMs running on a single physical machine can deliver
unstable performance