1. A method for restoring threads within a processing core, the method comprising: executing a context restore routine to restore from a memory a first portion of a context associated with a first thread group included in a plurality of thread groups; determining that the first thread group has not completed an assigned function; and executing one or more operations associated with a trap handler routine.