merging related task groups or determining that the task in focus does not share related resources with more than one task group no branch decision block 216 context switch manager 114 adds the task in focus to the related task group step 220 the related task group may be the current task group the merged task group or a previously generated task group responsive to adding the task in focus to the current a related or a new task group context switch manager 114 updates the task group list step 222 context switch manager 114 maintains a list of each task in each task group as a new task is initialized context switch manager 114 updates the appropriate task group list a user may reassign a task to a different task group if the user decides context switch manager 114 has assigned a task to an inappropriate task group context switch manager 114 determines if the current task group is related to one or more other task groups decision block 224 if a member task of the current task group uses the same or related resources of at least one task in another task group context switch manager 114 determines if.