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?
Thank you
Jillian Snyder wrote:Their estimated CPU cycles are respectively: 2, 10, 15,6, and 8. Using SJN, in what order should they be processed?
Thank you
And once you've answered Jesper's question (try Google), the answer to your question will be obvious.
Vishal Shaw
Ranch Hand
Joined: Aug 09, 2012
Posts: 179
posted
0
Hi,
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.
Cheers.
Vishal
Programming is about thinking, NOT coding
Vishal Shaw
Ranch Hand
Joined: Aug 09, 2012
Posts: 179
posted
0
My post was going to be third. How fast the world changed !!!