OS Assignment-1
OS Assignment-1
AY-2023- 24
1. Resource Management
2. Process Management
3. Memory Management
4. File System Management
5. Device Management
6. User Interface
1. Resource Management:
It manages hardware resources like CPU, memory, disk
space, and peripherals, allocating them to different
applications and processes as needed.
2. Process Management:
It controls the execution of processes, scheduling them for
execution, multitasking, and ensuring efficient use of CPU
time.
3. Memory Management:
It allocates and deallocates memory space for processes,
manages virtual memory, and handles memory protection to
prevent one process from interfering with another’s
memory.
5. Device Management:
It interacts with hardware devices like printers, keyboards,
and displays, managing device drivers and providing a
standardized interface for applications to access hardware
resources.
6. User Interface:
It provides a user-friendly interface for users to interact with
the computer, which can be graphical (GUI) or command-line
based.
FCFS:
Process AT BT CT TAT WT RT
P1 0 8 8 8 0 0
P2 1 4 12 11 7 7
P3 4 6 18 14 8 8
P4 6 2 20 14 12 12
P1 P2 P3 P4
0 8 12 18 20
SJF:
Process AT BT CT TAT WT RT
P1 0 8 8 8 0 0
P2 1 4 14 13 9 9
P3 4 6 20 16 10 10
P4 6 2 10 4 2 2
SJF Gantt chart:
P1 P4 P2 P3
0 8 10 14 20