Some of the functions of the dispatcher include the following:
- Context switches: The dispatcher saves the state (also known as context) of the process or thread that was previously running; then the dispatcher loads the initial or previously saved state of the new process.
- Switching to user mode.
- Jumping to the proper location in the user program to restart that program indicated by its new state.