Operating System
Operating System
Operating System
• An operating system (OS) is a
program that acts as an interface
between the system hardware and
the user. Moreover, it handles all the
interactions between the
software and the hardware.
Objectives of OS :
The primary goals of an operating
system
Functions of Operating
System :
Resource Management : The
operating system manages and
allocates memory, CPU time, and other
hardware resources among the various
programs and processes running on the
computer.
Process Management: The operating
system is responsible for starting,
stopping, and managing processes and
programs. It also controls the
scheduling of processes and allocates
resources to them.
Memory Management: The operating
system manages the computer’s
Security: The operating system
provides a secure environment for the
user, applications, and data by
implementing security policies and
mechanisms such as access controls
and encryption.
Disadvantages
There are five jobs J1, J2, J3, J4, and J5,
present in the batch. If the execution
time of J1 is very high, then the other
four jobs will never be executed, or
they will have to wait for a very long
time. Hence the other processes get
starved.
Multiprogramming Operating
System :
Types of Thread :
1. User Level Thread:
• User-level threads are implemented
and managed by the user and the
kernel is not aware of it.
• User-level threads are implemented
using user-level libraries and the OS
• User-level thread is faster to create
and manage compared to kernel-level
thread.
• Context switching in user-level
threads is faster.