1. In multiprocessing, which is performed by using a plurality of processor modules including a cache memory and a plurality of processors sharing the cache memory, a method of allocating a task to each processor comprising the steps of: monitoring access conditions of respective tasks to data shared among cache memories in the processor modules; and allocating tasks that make frequent accesses to the same shared data to processors in the same module, on the basis of said access conditions.