CST 334 - Week 3

I studied process management and context switching this week in CST 334. These concepts are crucial to how operating systems manage multitasking. Understanding intentional and involuntary context shifts was one important lesson learned. An involuntary context transition happens when the OS preempts a process because of time-slicing or priority scheduling, whereas a voluntary context switch happens when a process voluntarily gives up the CPU, such when it is waiting for I/O. This reaffirmed how crucial CPU scheduling is and how the operating system distributes resources across tasks equitably.

Process states and transitions, such as the change between the Ready, Running, and Blocked phases, were another crucial idea. Comprehending scheduling algorithms such as Round Robin (RR), Shortest Job Next (SJN), and First-Come, First-Served (FCFS) enabled me to comprehend how various tactics impact system responsiveness and efficiency. Particularly noteworthy was round robin scheduling, which uses time slices to strike a compromise between performance and fairness.

System calls, which let user-space programs communicate with the OS kernel, were also examined. My understanding of how programs create child processes for multitasking was opened by the usage of fork() and exec() in process formation. Furthermore, understanding inter-process communication (IPC) techniques like pipes and signals gave me a better understanding of how processes communicate information and coordinate.

In addition, the talks about concurrency and process synchronization helped me understand how difficult it is to manage several processes without running into problems. Seeing how scheduling and IPC technologies are used by contemporary operating systems to guarantee efficiency was intriguing.

All things considered, this week helped me better grasp how an operating system handles several processes and distributes CPU resources, which is crucial information for system programming.

Comments

Popular posts from this blog

Week 2

Week 1

Week 4