The correct answer is: B. assigning ready process to the CPU

The dispatcher is a part of the process scheduler that is responsible for selecting a process from the ready queue and scheduling it to run on the CPU. The dispatcher is typically implemented as a kernel thread that is always running. When a process is ready to run, the dispatcher preempts the current running process and switches to the new process.

The other options are incorrect because:

  • Option A is the function of the swapper.
  • Option C is the function of the scheduler.
  • Option D is the function of the memory manager.
  • Option E is not a valid option.