Learn why the Java wait() method requires synchronization.
Search Results for: Concurrency
How to Mock Environment Variables in Unit Tests
Learn how to write unit tests for code that uses environment variables with these Java testing libraries.
Java Weekly, Issue 511
Concurrent undo cycle, virtual thread pinning, Kafka worker on virtual threads, Java in Netflix, and no silver bullet in databases. A good week.
Difference Between Hashtable and ConcurrentHashMap in Java
Learn the differences between Hashtable and ConcurrentHashMap, delving into their performance metrics, synchronization features, and various other aspects.
Streams vs. Loops in Java
Dive deep into a Java Streams vs. For-Loops comparison.
Difference Between Future, CompletableFuture, and Rxjava’s Observable
Discover the difference between Future, CompletableFuture, and Rxjava’s Observable.
How to Get Notified When a Task Completes in Java Executors
Learn several options for receiving notifications on the completion of a task depending on how you’re running it.
CompletableFuture allOf().join() vs. CompletableFuture.join()
Explore CompletableFuture.allOf() method and the differences between it and calling join() on multiple separate CompletableFuture instances.
New Features in Java 20
Explore some of the new features and changes introduced as part of the incremental Java 20 release.
CompletableFuture and ThreadPool in Java
Learn about Java’s CompletableFuture and the thread pool it leverages.
Parallelize for Loop in Java
Learn different ways to parallelize a for loop in Java.
The Vector API in Java 19
Explore the Vector API, its associated terminologies, and how to leverage it.
Java Weekly, Issue 494
Simplified SSL in Spring Boot, structured concurrency in Java 21, nulls in Collectors, XSS in Java, and WASM on Docker.
Returning a Value After Finishing Thread’s Job in Java
Learn how to return a value from a thread that has its job terminated
ArrayBlockingQueue vs. LinkedBlockingQueue
Learn about the implementation differences between ArrayBlockingQueue and LinkedBlockingQueue.
Is CompletableFuture Non-blocking?
Understand the scenarios when CompletableFuture is non-blocking and when it’s not.
Scoped Values in Java 20
Scoped values is a new API in Java 20 that enables developers to store and share immutable data within and across threads. We look at how to use it and how it works.
Java Weekly, Issue 487
Java 20, adaptive GC for Quarkus, JFR event streaming, Java threading primitives, maintainable software, and HTTP stats codes!