atomic-long Questions

4

Solved

I've had this question for quite a while now, trying to read lots of resources and understanding what is going on - but I've still failed to get a good understanding of why things are the way they ...
Antigone asked 7/9, 2017 at 9:25

1

Solved

Can some one explain what AtomicLong is used for? For example, what's the difference in the below statements? private Long transactionId; private AtomicLong transactionId;
Peregrination asked 22/2, 2016 at 6:18

4

I need to perform the following operation: // average, total, elapsed are Long's average = ( ( total * average ) + elapsed ) / (++total); But I want to use AtomicLong This is what I'm trying ...
Weasand asked 4/10, 2012 at 20:53

1

Solved

I am using incrementAndGet method of AtomicLong in my multithreaded code to measure the performance of some of our client side code. @Override public void run() { long start = System.nanoTime()...
Shank asked 13/4, 2013 at 20:46
1

© 2022 - 2024 — McMap. All rights reserved.