Q1b In a real-time system each task or process can be periodic, run at intervals, or aperiodic, event driven. It is the job of the scheduler to decide which task to run at a particular time. The decision is usually arrived at based upon some scheduling algorithm. The scheduler is also responsible for controlling the transitions of the tasks between states of running, blocked or ready. It maintains lists of ready and blocked tasks and carries out the task switching function where the execution of the currently running task is stopped and next task on the ready list is started.