Is there a guarantee, that if one System.currentTimeMillis()
call happens before another System.currentTimeMillis()
call (from another thread), the value returned from the second call is not less than the value returned from the first call?
Asked
Active
Viewed 179 times
2

leventov
- 14,760
- 11
- 69
- 98
-
1No. However the memory model is not the cause of the non-monotonicity. See linked Q&A. – Stephen C Dec 26 '15 at 22:10