1 votes 1 votes here SJF is given as well as priorities are given, given answer followes only priority scheduling but i think priority is used in case where there is a tie between two processes in SJF what is the correct approach? Anusha Motamarri asked Feb 3, 2017 Anusha Motamarri 889 views answer comment Share Follow See all 17 Comments See all 17 17 Comments reply Kantikumar commented Feb 3, 2017 reply Follow Share I think SJF for Priority scheduling $\Rightarrow$ SJF is used for priority scheduling $\Rightarrow$ priority scheduling first then SJF if conflict occurs. 0 votes 0 votes Anusha Motamarri commented Feb 3, 2017 reply Follow Share any reference ? or reason ? 0 votes 0 votes vijaycs commented Feb 3, 2017 reply Follow Share yes, I agree with you@Anusha. I too got confused while taking the test. I think the question is not framed properly. 1 votes 1 votes Pavan Kumar Munnam commented Feb 3, 2017 reply Follow Share SJF is a special case of Priority scheduling, the priorities will be changed according to the burst time may be the priorities will be over written as they did not say priorities will change we cannot say anything i think 0 votes 0 votes Aboveallplayer commented Feb 3, 2017 reply Follow Share as far as i know!! priority will come into play ,when there is a tie between sjf 2 votes 2 votes Anjana Babu commented Feb 4, 2017 reply Follow Share SJF is non - premtive scheduling . What is the necessity of priority then ? 0 votes 0 votes Anusha Motamarri commented Feb 4, 2017 reply Follow Share @uddipto @vijay@pavan i think they need to explain why priorities are used. isnt it? i am now thinking that its implmentation dependent.hence shud be clearly mentioned in the question about the use of priorities i didnt find any reference on this do u have any reference supporting ur argument ? 0 votes 0 votes srestha commented Feb 4, 2017 reply Follow Share SJF for priority scheduling is SRTF. rt? 0 votes 0 votes Anusha Motamarri commented Feb 4, 2017 reply Follow Share when in SJF, burst times worked as priority then its SRTF. but here they gave priorities separately. 0 votes 0 votes smartmeet commented Feb 4, 2017 reply Follow Share this seems not a standard question! 0 votes 0 votes srestha commented Feb 4, 2017 reply Follow Share yea @Anusha here priority scheduling will take into pic. As preemptive scheduling always preferred over non preemptive ------------------------------------------------------------------------------------------------------------ Also in this type of question , step by step analysis will give better result- other than thinking for a perticular scheduling 0 votes 0 votes Anusha Motamarri commented Feb 4, 2017 reply Follow Share means according to u first we will pick process A at time 10 excute till 20. as at 20 Bcomes and its priority is higher than A, we shud preempt A and run B? is this what u meant @srestha? 0 votes 0 votes Kantikumar commented Feb 4, 2017 reply Follow Share I agree with @vijayc here, this doesn't seem to be a standard scheduling just poorly framed question. In GATE, they will properly mention tie-breaker. 0 votes 0 votes Anusha Motamarri commented Feb 4, 2017 reply Follow Share @kantikumar yea i agree with u. 0 votes 0 votes srestha commented Feb 4, 2017 reply Follow Share yes 0-----------10-----------A------------20-----------------B------------70---------C-----------------80-------------D----------120---------A-------140------E-------160 Here when Pi >Pj then Priority scheduling comes in pic 0 votes 0 votes Sushant Gokhale commented Feb 4, 2017 reply Follow Share I think its priority scheduling , But if priorities are same, then follow SJF 0 votes 0 votes Anusha Motamarri commented Feb 4, 2017 reply Follow Share many different opinions :D 0 votes 0 votes Please log in or register to add a comment.