摘要 |
<P>PROBLEM TO BE SOLVED: To improve processing efficiency relating to an access to a queue or an operation. <P>SOLUTION: First, a thread which desires to pop data to a queue confirms if there is data that can be popped to the queue which the thread accessed and pops the data (Y of S22,S24) if there is the data. On the other hand, if there is no data that can be popped, the thread pushes thread information including identification information of its own thread to the same queue, releases a processor, and proceeds to a standby state (N of S22, S28, S30). The thread which desires to push the data later determines that there is a thread waiting for data if there is thread information in the queue, pops the thread information, and transfers data to restart processing. <P>COPYRIGHT: (C)2012,JPO&INPIT |