Sunday, November 8, 2009

academic slides vs blog posts

academic slides: read me! read me! exam coming soon. this monday!
blog post: eh, i just arrived in the blog. check me out. i am very interesting.

academic slides: oh, read me first. i am of higher priority. needs to go into processing first.
blog post:oh, i won't take a lot of time. don't worry.

academic slides:don't fall for that! First-in-first-out concept! i came in first. i've been in the queue 2 minutes ago.
blog post:shortest job first! remember. i have minimum turnaround and service time.

ah. ok. the blog post wins. "reading blog post" thus went into execution. *imagine abba's "the winner takes it all" playing in the background.*

***

after reading the post, the eye found another interesting post and thus fired up a new message to the brain.

again the battle between the slides and the post begins:

academic slides:it's my turn now! yay!
blog post2: you know i can be done in a jiffy, don't you? besides, a few more minutes won't hurt. that academic slides is boring!

sigh. fall prey to blog post again. ok. just one more. last. *"the winner takes it all" playing in the background again*

***

well, the loop goes on and on without terminating. the academic slides are now suffering from starvation. its existence in the queue is shrinking, forgotten and insignificant.

insignificant? that's a sad word.

i should implement the round robin that distributes processing time equally among requesting processes. eh, but wait! round robin might not be that efficient all the time.

so after all, priority-based scheduling is the best option now. sigh. i always ignore priority. that's always my problem. intensive focusing class in need.

if only the slides are in comic form. i'll be able to read once and remember for a long time. :)

No comments: