Results 1 to 2 of 2
- 03-07-2008, 09:03 AM #1
Member
- Join Date
- Mar 2008
- Posts
- 1
- Rep Power
- 0
Question about CAS (compare and swap) method
CAS method can fail because of 2 reasons:
1. - the operation was failed because of other thread.
2. - the comparison was failed.
The question is: how I know the reason of failure? Because in first case I probably whould like to retry operation in loop until it succeeded, but in second case loop will be infinite.
Thanks.
- 04-04-2008, 08:49 PM #2
Member
- Join Date
- Feb 2008
- Posts
- 60
- Rep Power
- 0
Similar Threads
-
Simple Method Question
By Froz3n777 in forum New To JavaReplies: 2Last Post: 02-13-2008, 02:39 AM -
Return question in a method.
By MetalGear in forum New To JavaReplies: 1Last Post: 01-13-2008, 04:45 AM -
how to swap 2 numbers
By mary in forum Advanced JavaReplies: 1Last Post: 08-02-2007, 05:32 PM -
Compare 2 XML
By Peter in forum XMLReplies: 1Last Post: 07-05-2007, 02:58 AM -
compare speed
By bbq in forum JDBCReplies: 1Last Post: 06-28-2007, 05:34 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks