RTOS Task-1 D26
RTOS Task-1 D26
En No :- 92110133026
Subject :- RTOS
Sem :- 8th
- First Come First Serve, is just like FIFO(First in First out) Queue
data structure, where the data element which is added to the
queue first, is the one who leaves the queue first.
- This is used in Batch Systems.
- It's easy to understand and implement programmatically, using
a Queue data structure, where a new process enters through
the tail of the queue, and the scheduler selects process from
the head of the queue.
• Flow chart :-
[Start]
|
v
[Input data]
|
v
[Sort processes by arrival time]
|
v
[Initialize total_waiting_time = 0]
|
v
[For each process in sorted list]
|
v
[Calculate waiting time for the process]
|
v
[Update total_waiting_time]
|
v
[Calculate average_waiting_time]
|
v
[Output average_waiting_time]
|
v
[End]