- Initialize an empty queue.
- Add arriving processes to the end of the queue.
- While the queue is not empty a. Remove the process at the front of the queue. b. Execute the process until completion.
- Repeat step 3 until all processes are completed.
- Initialize an empty queue.
- Add arriving processes to the queue with their burst times.
- While the queue is not empty a. Select the process with the shortest burst time. b. Remove the selected process from the queue. c. Execute the process until completion.
- Repeat step 3 until all processes are completed.
- Initialize an empty queue.
- Assign a time quantum (time slice) to each process.
- Add arriving processes to the end of the queue.
- While the queue is not empty: a. Remove the process at the front of the queue. b. Execute the process for the assigned time quantum. c. If the process completes within the time quantum, remove it from the queue. d. Otherwise, add the process to the end of the queue.
- Repeat step 4 until all processes are completed.
- Initialize an empty queue.
- Assign a priority to each process.
- Add arriving processes to the queue with their priorities.
- While the queue is not empty: a. Select the process with the highest priority. b. Remove the selected process from the queue. c. Execute the process until completion.
- Repeat step 4 until all processes are completed.