Types of OS
1. Single process OS In this OS only one process can be executed at one time. This is a very old type of OS. Imagine there are 3 processes, then P1 will be executed first, once the first process is executed then only P2 will be executed followed by P3. In this process there are various drawbacks such as no maximum CPU utilization , process starvation, and no high priority process will be executed first. Example: MS DOS 2. Multiprogramming OS: As we populate the ready queue with multiple jobs, let's consider when job J1 is actively using the CPU. If J1 enters an I/O operation, like copying and pasting, to maintain CPU utilization and prevent idle time, we promptly schedule job J2 for execution. This approach ensures that the CPU stays engaged and productive while J1 handles its I/O task. Context-switching plays a major role here. Context switching refers to the operating system's technique for managing multiple processes on a single CPU. Imagine a scenario where there are ma...