Monthly Archives: September 2014

CPP CODE FOR SHORTEST JOB FIRST PREEMPTIVE PRIORITY ALGORITHM

Note: The below program is developed and tested on g++ compiler. To download the source code click here. if you have any doubts then feel free to leave comments below or mail me at iamukt@gmail.com.   #include<iostream> #include<cstdio> using namespace std; typedef struct prpsjf { int at,bt,ft,tat,wt,pr,id; }prpsjf; prpsjf p[20],p1[20],temp; int ts; int accept(); void prpsjfsort(int… Read More »