CST334 Module 2
Write a 1 - 2 paragraph description of what you learned this second week in CST 334 Topic: Processes
-- This weeks reading and lectures focused on what processes are and how they are handled by the OS. Programs are comprised of multiple components such as memory allocated to it by the OS and the actually instructions / programming for that process. The program API includes calls such as fork, wait, and exec. These allow programs to create new processes, aid in scheduling, and alter a program during execution respectively.
-- Past this, the OS got a lot of coverage this week with how it manages a task queue and program execution with the CPU. First off, the CPU is handled virtually: meaning that the OS dynamically hands, pauses, or exchanged tasks that the CPU is handling in order to use the CPU in the most efficient way possible. Due to the CPU being busy with other tasks when running, the OS needs to gain control eventually so that it can actually make any decisions. This is where program interrupts come in either through running process initiating an interrupt such as a trap, an I/O request, or voluntarily. The OS can also forcibly take back control using a system interrupt timer that is setup on system boot. Along side this idea of passing tasks to the CPU to complete, tasks must be scheduled so that CPU is efficiently used. There are multiple scheduler styles such as First In First Out, with different styles optimizing for different system attributes such as response time or turnaround time.
Comments
Post a Comment