CST 334: Week 2
Write a 1 - 2 paragraph journal post, of at least 250 words, of what you learned this week in CST 334.
This week we developed a deeper understanding about processes. For starters, the OS has data structures to hold information about processes that include their id, their state, their register values, and the size of memory. Additionally, the OS needs to manage each process’ state, which can either be ready, running, or blocked. When a process is in the ready state, it is prepared to run and waiting to be chosen by the OS. Once the process is chosen by the OS, it moves into the running state and begins implementing its instructions. When a process needs to wait for an event (such as I/O completion or a resource to become available), it moves from the running state to the blocked state. Once the event occurs, the process transitions back to the ready state. To ensure all processes are given an opportunity to run through to completion, we will apply scheduling policies to dictate when processes will run and for how long. There are various disciplines that can be applied in scheduling and there are two metrics that we measure to determine how efficient each discipline is, response time and turnaround time. Response time is the amount of time between when a process first arrives to the moment it is called to run by the OS. Turnaround time is the amount of time that is taken for a process to arrive in the system and complete it. The averages for these metrics will vary depending on which disciplines we use for scheduling and which is more suitable at what time may not be easy to determine, so understanding how each discipline works prepares us to be adaptable if one discipline isn’t producing our desired results.
Comments
Post a Comment