hey sir, can I have the answers to the final exercise? I would really appreciate it :)
@sajjanadeeb94613 жыл бұрын
After p1 completes its execution p2 from queue1 will get a chance and will be executed only for 4 ms because at 24 ms p3 arrives in queue0 which has the highest priority so cpu will be assigned to p3 in queue0 AM I RIGHT ??? ANYONE ??
@SuperMusikstar2 жыл бұрын
I think what you say is correct, but I haven't found a source yet that explains how cases like that are resolved
@ashishmishrauit2 жыл бұрын
You are absolutely right ........it is shown wrong in video.......
@samindapremaratne24722 жыл бұрын
CPU will be assigned to P3 when the TQ is over for P2.
@samindapremaratne24722 жыл бұрын
this example is correct. Both Q0 and Q1 are RR and it will stop either the TQ is over or when the process complete its execution. RR will not stop in the middle.
@vinayak24kanojia86 Жыл бұрын
you are correct, sir made a mistake here. p2 will be executed for 4ms and since p3 arrives with greater priority it will be executed. Remaining time quantum for p2 in q1 will be 8ms. So the next time p2 in q1 will be executed only for the remaining time quantum i.e 8ms.
@amrhaithem70643 жыл бұрын
thanks brotherrrrrr
@1SnowBall12 жыл бұрын
What if while I have a process in Q2 is working and a process enter Q1 do I stop the process that is in Q2 or do I let it finish
@1SnowBall12 жыл бұрын
If anyone is interested it depend on the global scheduling if it is pre-emptive or non pre-emptive
@tanishamaheshwary98722 жыл бұрын
@@1SnowBall1 but RR is always preemptive right.
@samindapremaratne24722 жыл бұрын
Q0 and Q1 are RR. so after the TQ, it cheks on Q0 and then Q1 for avalable processes according to the pririty.