systems and methods that alleviate programmers of the burden of writing extensive code to implement a context switch for a particular piece of software code . for software code for which a context switch is desired , a declaration of the context and its attributes may be included in the code , along with an indication of the boundaries of the portion of the code to be executed within the context . no further programming for particular piece of code may be necessary in order to implement the context switch . an execution engine may be configured to identify the declaration and the indication of the boundaries , control the generation of the context , and control the execution of the software code within the generated context . thus , from the perspective of the programmer of the piece of code , the context switch may seem transparent .