Q1. Explain scheduling in Symmetric Multiprocessor System.
Ans. In case of symmetric multiprocessor (SMP), where each processor is self-scheduling. All processes may be in a common ready queue, or each processor may have its own private queue of ready processes. Regardless, scheduling proceeds by having the scheduler for each processor examine the ready queue and select a process to execute. If we have multiple processors trying to access and update a common data structure, the scheduler must be programmed carefully. We must ensure that two processors do not choose the same process and that processes are not lost from the queue. On SMP it is important to keep the workload balanced among all processor to fully utilize the benefits of having more than one processor.