In the second week of CST334 Operating Systems, we learned about how the CPU executes multiple processes at a time through context switching. I learned that there are several techniques to instruct the CPU to handle multiple processes. I learned about first in, first out (FIFO), where the first process to start is the first to finish. Last in first out (LIFO) where the last process that comes in is the first to be completed. Shortest job first (SJF) looks at all the current processes and picks the one that is the shortest. This is closely related to shortest to complete which looks at which process has the least amount of time remaining to be completed. One additional method was round robin where the CPU is continually switching process based on a given time interval.
I found it interesting to learn about the various ways an operating system can be programmed to handle the many processes it will be expected to handle. I felt that I learned a lot about the tradeoffs for each method and where each method can work well.
Comments
Post a Comment