Skeleton code to save/restore full threads.