I am in understanding pertaining systems and don't understand SJN or this problem can anyone explain in depth?
Five jobs (A, B, C, D, E) are already in the READY queue waiting to be processed. Their estimated CPU cycles are respectively: 2, 10, 15,6, and 8. Using SJN, in what order should they be processed?
By SJN, I assume you mean Shortest Job Next, right? We used to call it Shortest Job first.
It's a scheduling algorithm, that chooses the shortest available job from the pool and assign it to the thread for execution.
So, it's quite simple.
I assume that all the jobs arrive at the same time. So based on the algorithm, you can easily say what the order should be .
Also please read about these algorithms before posting your homework in forum.
Programming is about thinking, NOT coding
Joined: Aug 09, 2012
My post was going to be third. How fast the world changed !!!