Patent ID: 8433884
Filing Date: 2013-04-30
Classification: G06F

Abstract:
1. A multiprocessor that includes: a first processor that allocates a different register file in a plurality of register files to each of a predetermined number of threads to be executed from among a plurality of threads, and executes the predetermined number of threads in parallel; and a second processor that performs processing in accordance with a processing request made by the first processor, wherein upon receiving the processing request from the first processor, the second processor performs the processing request, and makes a writing request to the first processor for writing a value obtained as a result of the processing request, and the first processor includes: a storage unit that has areas allocated to the plurality of threads in one-to-one correspondence; a first control unit operable, when any of the predetermined number of threads falls in a non-execution state, to write a value into a corresponding one of the areas, the value written into the corresponding one of the areas being included in one of the register files allocated to the any thread; a second control unit operable to (i) make the processing request to the second processor according to an instruction included in one of the predetermined number of threads, (ii) upon receiving the writing request from the second processor, judge whether the one thread is being executed, and (iii) when judging negatively, perform control such that the obtained value is written into part of one of the areas allocated to the one thread; and a third control unit operable, when the any thread falls back in an execution state, to restore, in the one of the register files, the value written into the corresponding one of the areas.