Modifier and Type | Field and Description |
---|---|
protected boolean |
first |
protected SCOPE.MessageQueue |
queue |
Constructor and Description |
---|
SCOPE.QueueThread(SCOPE.MessageQueue queue) |
protected final SCOPE.MessageQueue queue
protected boolean first
public SCOPE.QueueThread(SCOPE.MessageQueue queue)
public void run()
- Threads T1 and T2 - T1 has the CAS - T1: remove() == null - T2: add() - T2: attempt to set the CAS: false, return - T1: set the CAS to false, return ==> Result: we have a message in the queue that nobody takes care of !
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.