Andrei Pechkurov
Random thoughts on concurrency, databases and distributed systems

Random thoughts on concurrency, databases and distributed systems

Follow
homebadges
Tag

Java

#java

More content

Read more stories on Hashnode


Articles with this tag

BuzzwordBusters: What Does Lock-Free, Wait-Free Really Mean?

Dec 18, 2022

It seems to be a common belief that code which uses mutexes/locks/synchronized methods is "slow" and, as soon as you replace them with atomics, your...

BuzzwordBusters: What Does Lock-Free, Wait-Free Really Mean?

Concurrent Map in Go vs Java: Yet Another Meaningless Benchmark

Nov 4, 2022

Today we're comparing Java's j.u.c.ConcurrentHashMap and Go's xsync.MapOf in a totally non-scientific, unfair benchmark. While most of such language...

Concurrent Map in Go vs Java: Yet Another Meaningless Benchmark

Testing Concurrent Code for Fun and Profit

Oct 9, 2022

Everyone knows that multi-threaded code is not a piece of cake. There are lots of publications on how to write concurrent code properly and also lots...

Testing Concurrent Code for Fun and Profit

Fast and Simple SPSC Queue

Oct 1, 2022

Single producer single consumer (SPSC) queues form the simplest type of concurrent queues. We have a single thread producing the items, as well as a...

Fast and Simple SPSC Queue

Using Acquire/Release Semantics in Java Atomics for Fun and Profit

Jan 21, 2022

In case you've missed it, recent JDK versions include new memory semantics for atomic operations available in VarHandle and Atomic* classes. These new...

Using Acquire/Release Semantics in Java Atomics for Fun and Profit

Benchmarking Non-shared Locks in Java

Jan 9, 2022

Last time we discussed scalability of j.u.c.l.ReentrantReadWriteLock and some alternatives. Some of the alternatives used a simple CAS...

Benchmarking Non-shared Locks in Java