This is a C program to simulate Shortest Job First (SJF) CPU scheduling algorithm. In Shortest Job first CPU scheduling algorithm, the process with shortest CPU burst time is executed first. The following program is to simulate non preemptive SJF scheduling. Preemptive SJF CPU scheduling algorithm will be discussed in another post.
Program:
#include<stdio.h>
struct process{
int burst,wait,no;
}p[20]={0,0};
Information about resetting and configuring Mobile phones (Java, Android, Symbian etc), educational articles especially for programming in C, C++ and Java and more about Computers and operating systems
Showing posts with label process scheduling. Show all posts
Showing posts with label process scheduling. Show all posts
Subscribe to:
Posts
(
Atom
)