1. A method for context switching in an electronic processor, comprising: receiving, at the electronic processor from a scheduler, an identity of a first context, the first context currently inactive; performing, at the electronic processor after the receiving the identity of the first context, a first instruction of a thread associated with a second context, the second context currently active; storing, at the electronic processor at a context program counter register of the second context, a program counter of the first instruction; and pointing, at the electronic processor, a processor program counter to a context program counter register of the first context.