摘要 |
[Problem] To logically divide, between threads, shared resources that will be updated, and to carry out updating in parallel among a plurality of cores. [Solution] A shared resource update device comprises a processor that controls execution of a program constituted by a plurality of threads, and that updates shared resources having a plurality of regions which are associated with the plurality of threads. The processor sets at least one thread from among the plurality of threads to be an update thread for which the shared resource region that is associated with the at least one thread is updated, and sets a thread different from the update thread to be a reference thread that sends an update request to the update thread when the shared resource is being updated and that directly references the shared resource when the shared resource is being referenced. |