The multithreaded processor 6, wherein {HEAD ~ the instruction} corresponds to a thread with a first thread ID and the plurality of stages contain instructions corresponding to more than one thread, and wherein the trap logic unit is further configured to initiate a flush of only those instructions which follow the instruction and which correspond to {TAIL ~ the first thread} ID 
The multithreaded processor 6 , wherein { HEAD ~ the instruction } corresponds to a thread with a first thread ID and the plurality of stages contain instructions corresponding to more than one thread , and wherein the trap logic unit is further configured to initiate a flush of only those instructions which follow the instruction and which correspond to { TAIL ~ the first thread } ID
OTH OTH OTH OTH OTH OTH HEAD HEAD HEAD HEAD HEAD HEAD OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH TAIL TAIL TAIL TAIL TAIL TAIL TAIL OTH