Quantcast
Channel: Having full atomicity against all the threads without impacting performance or throughputs - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Holger for Having full atomicity against all the threads without...

The atomicity of your operation doesn’t change when you put the ConcurrentHashMap into an AtomicReference. put and get are atomic anyway and the only affected operation, replaceBlockedHosts, would work...

View Article



Answer by kapex for Having full atomicity against all the threads without...

Keep in mind that communication with other hosts takes considerably more time than anything you are doing in your threads. I wouldn't worry about atomic operations in this case. Let's say we have the...

View Article

Having full atomicity against all the threads without impacting performance...

I have a list of hostnames which I am supposed to make a call by making the proper URL from it. Let's say if I have four hostname (hostA, hostB, hostC, hostD) in the linked list -Execute hostA url and...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images