Example of task switching between threads added.