Tagged articles
11 articles
Page 1 of 1
FunTester
FunTester
Jan 13, 2025 · Backend Development

Mastering Java’s Phaser: Advanced Thread Synchronization for Performance Testing

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.

PerformanceTestingPhaserThreadSynchronization
0 likes · 13 min read
Mastering Java’s Phaser: Advanced Thread Synchronization for Performance Testing
Sohu Tech Products
Sohu Tech Products
May 21, 2024 · Game Development

Build a Classic Plane‑Shooter Game with Phaser, Vue3 and TypeScript

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.

Game DevelopmentHTML5Phaser
0 likes · 22 min read
Build a Classic Plane‑Shooter Game with Phaser, Vue3 and TypeScript
FunTester
FunTester
Jan 14, 2024 · Backend Development

How to Build a More Flexible Java Phaser: Introducing FunPhaser

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.

Custom SynchronizerPhaserconcurrency
0 likes · 8 min read
How to Build a More Flexible Java Phaser: Introducing FunPhaser
FunTester
FunTester
Dec 25, 2021 · Backend Development

Java Thread Synchronization Utilities: CountDownLatch, CyclicBarrier, and Phaser

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.

CountDownLatchCyclicBarrierPhaser
0 likes · 7 min read
Java Thread Synchronization Utilities: CountDownLatch, CyclicBarrier, and Phaser
FunTester
FunTester
Oct 19, 2021 · Backend Development

Mimicking Go’s ‘go’ Keyword in Java and Groovy with Thread Pools

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.

AsyncGroovyPhaser
0 likes · 7 min read
Mimicking Go’s ‘go’ Keyword in Java and Groovy with Thread Pools
FunTester
FunTester
Oct 13, 2021 · Operations

Dynamic Load Adjustment in FunTester: A Real‑World Pressure‑Control Demo

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 concurrencyLoad Testing
0 likes · 15 min read
Dynamic Load Adjustment in FunTester: A Real‑World Pressure‑Control Demo
Aotu Lab
Aotu Lab
Mar 9, 2021 · Game Development

How to Build a ‘Merge Watermelon’ Game with Phaser 3 and TypeScript

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.

CollisionGame DevelopmentHTML5
0 likes · 10 min read
How to Build a ‘Merge Watermelon’ Game with Phaser 3 and TypeScript
FunTester
FunTester
Aug 4, 2020 · Backend Development

Mastering Java’s Phaser: A Flexible Alternative to CountDownLatch and CyclicBarrier

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.

PhaserSynchronizationconcurrency
0 likes · 9 min read
Mastering Java’s Phaser: A Flexible Alternative to CountDownLatch and CyclicBarrier