The present invention relates to a processor system. The processor system
is made up of a multithread control unit for selectively making switching
among said threads to be executed in an arithmetic unit, a loop
predicting unit for predicting a loop of an instruction string on the
basis of a processing history of a branch instruction in the thread, and
a loop detecting unit for, when the loop predicting unit predicts the
loop, detecting the loop on the basis of an instruction. When the loop
detecting unit detects the loop, the multithread control unit making the
switching from the thread, which is in execution in the arithmetic unit,
to a different thread. This prevents a wait condition stemming from the
loop from interfering with the execution of other threads without
retouching software.