![]() After that we will use the bubble sort algorithm to sort the burst time and its corresponding process in ascending order. Here we will see how we will implement SJF(Shortest Job First) scheduling algorithm in C language. First, we will ask the user to enter the total number of processes and ask them to enter the burst time for each process. Waiting time is the total time taken by the process in the ready queue before it is assigned to the CPU(Central Processing Unit). One of the main advantages is that the SJF gives the lowest average waiting time. In SJF, the process which has the shortest execution time will be chosen. Burst Time is the time required by a process for its execution. Here the process is scheduled based on their burst time. ![]() ![]() ![]() In this article, we will see how we can implement sjf scheduling algorithm in C language. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |