CST 334, Journal Entry Week 2

This week I learned about how computers decide which tasks to work on first, called process scheduling. It’s like the computer making a to-do list and picking what to do next. I also learned about context switching, which is when the computer switches from one task to another, kind of like pausing a game and starting another one without losing your progress.

There are a few different ways the computer can pick what to do. You hve

  • Round Robin: gives each task a little bit of time, then moves to the next one, and keeps going in a loop.
  • FIFO (First-In, First-Out): is like waiting in line—whatever gets there first runs first.
  • Shortest Job First: picks the task that will finish the quickest
  • Shortest Time Remaining: switches to any new task that can finish sooner than what’s already running.

These each have their own pros and cons, but in the end, Shortest Time Remaining is the best followed by round robin.

Another thing is I can actually use this in real life to manage my own tasks. Like if I have a bunch of homework and chores, I can use Round Robin to give each one a bit of time instead of getting stuck on one thing.

Also I can do what I call “ninja” mode, where I just do 15 mins of homework, then 15mins of gaming, round robin style.


Discussion & Comments

Leave a Reply

Your email address will not be published. Required fields are marked *