摘要 |
PROBLEM TO BE SOLVED: To manage plural threads as one unit and to simultaneously execute threads of the same unit by plural processors. SOLUTION: Two threads to be simultaneously started by processors 21, 22 are set as a thread set and stored in a context area built in a context retreating area 32 in a main storage to manage them. Each of the processsors 21 to 2n execute exclusive arbitration in exceptional processing by using an exclusive control variable 31 at the time of switching a context so that only a single processor acquires kernel scheduler execution right. The processor 21 acquiring the kernel scheduler execution right selects a thread set to be executed next, specifies the retreated address of a context and the storing address of a restored context to the processor 22 by using a retreated address specification variable 36, switches contexts in cooperation with the processor 22, and simultaneously starts the execution of two threads in a thread set to be executed next. |