In step 601, the new thread ID is obtained from the trace record.
In step 603, a determination is made whether the record indicates a thread switch by determining if the new thread ID is the same as the current thread ID.