Able to use context_switch on the same thread