Tagged articles
Phaser
12 articles · Page 1 of 1

DabaoshiAug 19, 2026 · Backend Development
This article explains how Java's synchronization utilities—CountDownLatch, CyclicBarrier, Semaphore, Phaser, and Exchanger—solve coordination problems such as one‑time startup waits, repeated barrier synchronization, resource‑quota limiting, dynamic multi‑stage collaboration, and two‑thread data exchange, with concrete code examples and a full seckill‑system case study.
CountDownLatchCyclicBarrierExchanger
0 likes · 18 min read

This article explains Java’s java.util.concurrent.Phaser class, compares it with CountDownLatch, details its core methods, demonstrates practical usage with code examples, and shows how to build a custom lightweight synchronization utility for performance testing scenarios.
ConcurrencyJavaPerformanceTesting
0 likes · 13 min read

This step‑by‑step tutorial shows how to create a browser‑based plane‑shooting game by setting up a Vue3 project, installing Phaser, organizing assets, implementing collision detection, designing preloader, main, and end scenes, encapsulating player, bullet, enemy, and explosion logic in reusable classes, and optimizing collision bounds for a polished HTML5 gaming experience.
HTML5PhaserTypeScript
0 likes · 22 min read

This article explains the limitations of java.util.concurrent.Phaser for large‑scale asynchronous tasks, presents a custom FunPhaser implementation that removes the party‑count ceiling, details its design, API, and usage examples, and compares it with the original Phaser approach.
ConcurrencyCustom SynchronizerJava
0 likes · 8 min read

An overview of Java’s three primary thread‑synchronization tools—CountDownLatch, CyclicBarrier, and Phaser—explaining their placement in java.util.concurrent, typical use‑cases such as coordinating multi‑threaded tasks in performance testing, and the advantages of each, complemented by illustrative diagrams.
ConcurrencyCountDownLatchCyclicBarrier
0 likes · 7 min read

This article explains how to create a fixed-size Java thread pool, attach a daemon thread that monitors the main thread, and use Phaser for synchronization, providing complete Groovy and Java examples with detailed code and console output.
ConcurrencyDaemonThreadGroovy
0 likes · 8 min read

This article explains how to achieve Go‑style asynchronous execution in Java and Groovy by leveraging closures, the java.util.function.Supplier interface, custom thread‑pool wrappers, and Phaser‑based synchronization, complete with practical code examples and a custom ThreadFactory implementation.
ConcurrencyGroovyJava
0 likes · 7 min read

This article explains how to replace slow single‑threaded API calls with a fixed‑size Java thread pool combined with CountDownLatch or Phaser for synchronization, achieving a ten‑to‑twenty‑fold performance boost while controlling request pressure.
ConcurrencyCountDownLatchJava
0 likes · 4 min read

This article details the design and implementation of a dynamic pressure model for the FunTester performance testing framework, covering the goal of flexible load adjustments, core features, multithread synchronization using Phaser, code examples, a demo execution, console output analysis, and identified limitations.
FunTesterJava ConcurrencyMultithreading
0 likes · 15 min read

This article explains how Java's CountDownLatch, CyclicBarrier, and Phaser classes work, compares their features, and shows practical scenarios—especially in performance testing—where each synchronization tool can be applied effectively.
ConcurrencyCountDownLatchCyclicBarrier
0 likes · 4 min read

This step‑by‑step guide shows how to create a simple “merge watermelon” HTML5 game using Phaser 3, TypeScript, and Matter.js physics, covering project setup, asset loading, fruit creation, input handling, collision logic, scoring, and game‑over detection.
CollisionHTML5Matter.js
0 likes · 10 min read

This article explains how Java’s Phaser class extends the capabilities of CountDownLatch and CyclicBarrier, offering dynamic phase management for multistage tasks, details its constructors and key methods, compares usage scenarios, and provides a complete code demo illustrating practical implementation.
ConcurrencyJavaMultithreading
0 likes · 9 min read
