发明名称 |
Multi-lane concurrent bag for facilitating inter-thread communication |
摘要 |
A method, system, and medium are disclosed for facilitating communication between multiple concurrent threads of execution using a multi-lane concurrent bag. The bag comprises a plurality of independently-accessible concurrent intermediaries (lanes) that are each configured to store data elements. The bag provides an insert function executable to insert a given data element into the bag by selecting one of the intermediaries and inserting the data element into the selected intermediary. The bag also provides a consume function executable to consume a data element from the bag by choosing one of the intermediaries and consuming (removing and returning) a data element stored in the chosen intermediary. The bag guarantees that execution of the consume function consumes a data element if the bag is non-empty and permits multiple threads to execute the insert or consume functions concurrently. |
申请公布号 |
US8689237(B2) |
申请公布日期 |
2014.04.01 |
申请号 |
US201113241015 |
申请日期 |
2011.09.22 |
申请人 |
DICE DAVID;OTENKO OLEKSANDR;ORACLE INTERNATIONAL CORPORATION |
发明人 |
DICE DAVID;OTENKO OLEKSANDR |
分类号 |
G06F9/44;G06F9/46 |
主分类号 |
G06F9/44 |
代理机构 |
|
代理人 |
|
主权项 |
|
地址 |
|