Algorithm used:
1- First input the processes with their burst time and priority.
2- Sort the processes, burst time and priority according to the priority.
3- Now simply apply FCFS algorithm.
Algorithm used:
1- Round Robin is the preemptive process scheduling algorithm.
2- Each process is provided a fix time to execute, it is called a quantum.
3- Once a process is executed for a given time period, it is preempted and other process executes for a given time period.
4- Context switching is used to save states of preempted processes.