1. A context switch method comprising: converting a state of multiple register files to be in any one of a prefetch state, a current state, and a store state when a context switch occurs; wherein, in the prefetch state, determining a memory address to read a next task context to be subsequently performed, in the current state, performing a task with the task context of the register file, and in the store state, storing the register file in a memory.