Home » You searched for “Concurrency”

Search Results for: Concurrency

OpenJDK Loom and Structured Concurrency

Project Loom is one of the projects sponsored by the Hotspot Group, initiated to deliver high throughput and lightweight concurrency model into the JAVA world. At the time of writing this post, project Loom is still under active development and its API might change. Why Loom? The first question that might and should pop up for every new project is ...

Read More »

Two Common Concurrency Bugs

As a Baeldung editor, I had the pleasure working with an author on an article on Common Concurrency Pitfalls in Java. This is a great read, but assumes a certain amount of competence on the part of the developer. There are a couple of things I’ve seen which are instant concurrency fails. They’re easy to add to the code, and ...

Read More »

Java Concurrency Tutorials

In this detailed Resource page, we feature an abundance of Java Concurrency Tutorials! The Java programming language and the Java virtual machine (JVM) have been designed to support concurrent programming, and all execution takes place in the context of threads. Objects and resources can be accessed by many separate threads; each thread has its own path of execution but can potentially ...

Read More »

Idiomatic concurrency: flatMap() vs. parallel() – RxJava FAQ

Simple, effective and safe concurrency was one of the design principles of RxJava. Yet, ironically, it’s probably one of the most misunderstood aspects of this library. Let’s take a simple example: imagine we have a bunch of UUIDs and for each one of them we must perform a set of tasks. The first problem is to perform I/O intensive operation per ...

Read More »

Java Concurrency Essentials

Concurrency is always a challenge for developers and writing concurrent programs can be extremely hard. There is a number of things that could potentially blow up and the complexity of systems rises considerably when concurrency is introduced. Howev ...

Read More »

Concurrency in Elixir

Erlang has been around for over 30 years and was built well before multi-core CPUs existed. Yet it’s a language that couldn’t be more relevant today! The underlying architecture of the language lends itself perfectly to the modern CPUs that are on every computer and mobile device. The computer I’m writing this article on has a 2.2 GHz Intel Core ...

Read More »

Benchmarking High-Concurrency HTTP Servers on the JVM

After a first post about HTTP clients, to which I redirect you for an introduction about efficient HTTP on the JVM, let’s now talk about HTTP servers. There are several benchmarks about HTTP servers out there but they’re often hindered by shortcomings such as: Not exercising effectively high-concurrency scenarios and, more generally, considering unrealistic and unrepresentative ones, for example: The pure-overhead scenario, ...

Read More »