Time-Sharing Operating System
In a Multi-tasking Operating System, more than one processes are being executed at a particular time with the help of the time-sharing concept. So, in the time-sharing environment, we decide a time that is called time quantum and when the process starts its execution then the execution continues for only that amount of time and after that, other processes will be given chance for that amount of time only. In the next cycle, the first process will again come for its execution and it will be executed for that time quantum only and again next process will come. This process will continue. The following image describes the working of a Time-Sharing Operating System.
Advantages:
Since equal time quantum is given to each process, so each process gets equal opportunity to execute.
The CPU will be busy in most of the cases and this is good to have case.
Disadvantages:
Process having higher priority will not get the chance to be executed first because the equal opportunity is given to each process.