Transaction capable queuing
    1.
    发明专利

    公开(公告)号:GB2512086A

    公开(公告)日:2014-09-24

    申请号:GB201305062

    申请日:2013-03-20

    Applicant: IBM

    Abstract: A method and system for transactional capable queuing is provided. The method comprises a queue of ordered messages (200). A get cursor operation (211) points to a starting place in the queue for retrieving a message. A first lock (220) is provided for putting operations to the queue to ensure only one application (223) can put to the queue at a time. A second lock (230) is provided to ensure only one getting application (233) can get from the queue at any one time. Putting and getting operations are synchronized to check and update the get cursor. No first or second locks are provided is there is only a single put or get application. The get cursor may be unwound if a put application commits a message earlier than the starting position of the get cursor. The get cursor may comprise one or two memory words used by an atomic instruction for synchronizing. Synchronizing may include Double Width Compare and Swap (DWCAS) or a Compare and Swap (CAS) operations.

Patent Agency Ranking