IP Live sessio-4(OS -1)

In multiprogramming, how we would decide when to stop process A (in case its taking a lot of time) and switch to process B ?

We can fix a time quantum for which a certain process can run and occupy the CPU. After that time, we switch to another process so that all processes get a fair chance.

But then it won’t it become same as multitasking ?

Multitasking is basically tasks sharing a common resource such as CPU. In our problem, we will release all the held resources after the time quantum, so that other processes can use it.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.