Thread processing method and thread processing system for setting for each thread priority level of access right to access shared memory
First Claim
1. A thread processing method executed by a specific apparatus, the method comprising:
- assigning a plurality of threads to a plurality of apparatuses, wherein the plurality of threads are controlled to be synchronized with each other by the plurality of apparatuses and each of the plurality of threads executes processing to access a shared memory shared by the specific apparatus and the plurality of apparatuses;
acquiring, for each of the plurality of apparatuses, first time information that indicates a time at which the specific apparatus receives an execution result of a thread assigned to the apparatus;
calculating, for each of the plurality of apparatuses, a synchronization standby period during which the apparatus is in a synchronization-standby mode and that is a difference between the time indicated by the first time information and a time that is indicated by second time information and at which the specific apparatus receives a last execution result among execution results of threads that are assigned to the plurality of apparatuses; and
setting, in an ascending order of the synchronization standby period, a priority level of an access right for each of the plurality of apparatuses to access the shared memory when executing a new thread that executes the processing to access the shared memory.
1 Assignment
0 Petitions
Accused Products
Abstract
A thread processing method is executed by a specific apparatus included among a plurality of apparatuses, and includes assigning one thread among a plurality of threads to the apparatuses, respectively; acquiring first time information that indicates a time at which the specific apparatus receives an execution result of a corresponding thread from each of the apparatuses; and setting a priority level of an access right to access shared memory that is shared by the apparatuses and the specific apparatus, the setting being based on the first time information and second time information that indicates a time at which reception of execution results of the threads from the apparatuses ends.
-
Citations
6 Claims
-
1. A thread processing method executed by a specific apparatus, the method comprising:
-
assigning a plurality of threads to a plurality of apparatuses, wherein the plurality of threads are controlled to be synchronized with each other by the plurality of apparatuses and each of the plurality of threads executes processing to access a shared memory shared by the specific apparatus and the plurality of apparatuses; acquiring, for each of the plurality of apparatuses, first time information that indicates a time at which the specific apparatus receives an execution result of a thread assigned to the apparatus; calculating, for each of the plurality of apparatuses, a synchronization standby period during which the apparatus is in a synchronization-standby mode and that is a difference between the time indicated by the first time information and a time that is indicated by second time information and at which the specific apparatus receives a last execution result among execution results of threads that are assigned to the plurality of apparatuses; and setting, in an ascending order of the synchronization standby period, a priority level of an access right for each of the plurality of apparatuses to access the shared memory when executing a new thread that executes the processing to access the shared memory. - View Dependent Claims (2, 3)
-
-
4. A thread processing system, comprising:
-
a specific apparatus and a plurality of other apparatuses, wherein the specific apparatus is configured to; assign a plurality of threads to the other apparatuses, wherein the plurality of threads are controlled to be synchronized with each other by the plurality of other apparatuses and each of the plurality of threads executes processing to access a shared memory shared by the specific apparatus and the plurality of other apparatuses; acquire, for each of the plurality of other apparatuses, first time information that indicates a time at which the specific apparatus receives an execution result of a thread assigned to the respective other apparatus; calculate, for each of the plurality of apparatuses, a synchronization standby period during which the apparatus is in a synchronization-standby mode and that is a difference between the time indicated by the first time information and a time that is indicated by second time information and at which the specific apparatus receives a last execution result among execution results of threads that are assigned to the plurality of apparatuses; and set, in an ascending order of the synchronization standby period, a priority level of an access right for each of the plurality of other apparatuses to access the shared memory when executing a new thread that executes the processing to access the shared memory. - View Dependent Claims (5, 6)
-
Specification