Tag

Semaphore

1 views collected around this technical thread.

Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 24, 2025 · Backend Development

Printing ABC in Order with Multiple Threads Using Semaphore in Java

This article explains how to create three Java threads that print the characters A, B, and C in strict order, repeat the sequence twenty times, and demonstrates three implementations—unordered printing, ordered printing with Semaphore, and a looped version—complete with full source code examples.

JavaSemaphoreThread Coordination
0 likes · 7 min read
Printing ABC in Order with Multiple Threads Using Semaphore in Java
Top Architecture Tech Stack
Top Architecture Tech Stack
May 12, 2025 · Operations

Load Testing with Postman, Apache Bench, JMeter, and Java Concurrency Utilities

This article explains how to perform HTTP load testing using Postman, Apache Bench, JMeter, and Java concurrency classes such as CountDownLatch and Semaphore, providing step‑by‑step setup, configuration, and code examples for simulating high‑traffic scenarios.

Apache BenchCountDownLatchJMeter
0 likes · 8 min read
Load Testing with Postman, Apache Bench, JMeter, and Java Concurrency Utilities
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 7, 2025 · Backend Development

Understanding Java Semaphore: Methods, Usage, and Example Code

This article explains Java's Semaphore concurrency primitive, its core methods, fair vs. non‑fair modes, typical scenarios such as rate limiting and resource pooling, and provides two complete code examples demonstrating thread coordination and download throttling.

JavaRate LimitingSemaphore
0 likes · 6 min read
Understanding Java Semaphore: Methods, Usage, and Example Code
Cognitive Technology Team
Cognitive Technology Team
Apr 11, 2025 · Backend Development

Hystrix Service Isolation: Thread‑Pool and Semaphore Isolation Patterns

The article explains how Hystrix uses thread‑pool and semaphore isolation to prevent cascading failures in microservice architectures, detailing implementation, configuration defaults, suitable scenarios, and recommendations for building resilient distributed systems.

HystrixSemaphoremicroservices
0 likes · 5 min read
Hystrix Service Isolation: Thread‑Pool and Semaphore Isolation Patterns
Code Mala Tang
Code Mala Tang
Feb 20, 2025 · Fundamentals

Mastering Lock Mechanisms: From Mutexes to Distributed Locks in Python

This comprehensive guide explores why locks are essential in concurrent programming, explains the principles behind mutexes, semaphores, read‑write locks, and re‑entrant locks, provides Python code examples, discusses common pitfalls like deadlocks, and offers best‑practice strategies for production environments.

PythonSemaphoreSynchronization
0 likes · 22 min read
Mastering Lock Mechanisms: From Mutexes to Distributed Locks in Python
Raymond Ops
Raymond Ops
Jan 13, 2025 · Cloud Native

How Docker Transforms Go Web App Development and Deployment

This tutorial explains how to containerize a simple Go web application with Docker, set up a development workflow using Docker and Bee, build and run images, and automate continuous integration and deployment with Semaphore, covering prerequisites, Dockerfile creation, testing, and production deployment steps.

CI/CDContainerizationDocker
0 likes · 23 min read
How Docker Transforms Go Web App Development and Deployment
Deepin Linux
Deepin Linux
Nov 27, 2024 · Fundamentals

Linux Thread Synchronization: Mechanisms, Implementations, and Practical Applications

This article provides a comprehensive overview of Linux thread synchronization, explaining core concepts such as mutexes, condition variables, semaphores, and futexes, describing their implementation details, code examples, and common usage scenarios like producer‑consumer and reader‑writer problems.

Condition VariableFutexLinux
0 likes · 33 min read
Linux Thread Synchronization: Mechanisms, Implementations, and Practical Applications
php中文网 Courses
php中文网 Courses
Nov 12, 2024 · Backend Development

Analysis of Process Mutual Exclusion in PHP and Automatic Semaphore Release

This article explains how a PHP script uses a named semaphore for process mutual exclusion, demonstrates why a second concurrent process can acquire the semaphore after the first finishes, and clarifies that PHP automatically releases held semaphores when a process terminates.

PHPSemaphoreconcurrency
0 likes · 3 min read
Analysis of Process Mutual Exclusion in PHP and Automatic Semaphore Release
Wukong Talks Architecture
Wukong Talks Architecture
Jun 19, 2024 · Backend Development

Design and Optimization of a High‑Concurrency Lottery System

This article details how a large‑scale lottery service was architected and tuned for extreme traffic spikes by applying server‑side rate limiting, application‑level throttling, behavior‑based filtering, caching strategies, database optimizations, and hardware upgrades, resulting in a ten‑fold performance improvement.

Database TuningLoad BalancingRate Limiting
0 likes · 12 min read
Design and Optimization of a High‑Concurrency Lottery System
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Dec 29, 2023 · Fundamentals

Overview of Linux Kernel Synchronization Mechanisms: Atomic Operations, Spinlocks, Semaphores, and Mutexes

The article systematically explains Linux kernel synchronization primitives—from basic atomic operations through queued spinlocks, counting semaphores, and sleeping mutexes to read‑write semaphores and per‑CPU variants—detailing their underlying data structures, memory‑barrier semantics, and the fast‑path and slow‑path acquisition and release APIs.

Linux kernelMutexSemaphore
0 likes · 13 min read
Overview of Linux Kernel Synchronization Mechanisms: Atomic Operations, Spinlocks, Semaphores, and Mutexes
php中文网 Courses
php中文网 Courses
Nov 2, 2023 · Backend Development

Handling Concurrent Access and Race Conditions in PHP

This article explains essential techniques for managing concurrent access and race conditions in PHP, covering mutex locks, semaphores, atomic operations, queue-based processing, database access optimization, and transaction management to improve system reliability and performance.

AtomicDatabaseMutex
0 likes · 5 min read
Handling Concurrent Access and Race Conditions in PHP
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Aug 19, 2023 · Fundamentals

Java Multithreaded Printing of ABC Sequence Using Semaphores

This article explains how to create three Java threads that print the characters A, B, and C in order, first without synchronization, then using Semaphore for ordered output, and finally extending the solution to repeat the ABC sequence twenty times.

JavaSemaphoreThread Synchronization
0 likes · 7 min read
Java Multithreaded Printing of ABC Sequence Using Semaphores
IT Services Circle
IT Services Circle
Jun 29, 2023 · Backend Development

Tencent Testing Engineer Interview Experience and Technical Q&A

This article shares a detailed account of a Tencent testing engineer interview, covering self‑introduction, Go knowledge, Redis performance, distributed lock implementation, semaphore mechanics, RPC vs HTTP, concurrency usage, Git security practices, Linux commands, and a few brain‑teaser and algorithm questions.

Distributed LockGoInterview
0 likes · 13 min read
Tencent Testing Engineer Interview Experience and Technical Q&A
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Apr 20, 2023 · Backend Development

Overview of Four Core Java Concurrency Utilities

This article introduces the four essential Java concurrency utilities—CountDownLatch, CyclicBarrier, Semaphore, and Exchanger—explaining their functions, underlying principles, typical usage patterns, and practical scenarios such as thread synchronization, resource limiting, and data exchange in multithreaded applications.

CountDownLatchCyclicBarrierExchanger
0 likes · 7 min read
Overview of Four Core Java Concurrency Utilities
Architect's Guide
Architect's Guide
Apr 12, 2023 · Backend Development

Redis Cache Avalanche and Mitigation Strategies with Semaphore Rate Limiting

The article explains how Redis cache expiration can cause a cache avalanche, describes typical scenarios, and presents mitigation techniques such as semaphore-based rate limiting and fault tolerance, accompanied by a Java service example demonstrating lock, semaphore, and cache handling.

Cache AvalancheJavaRate Limiting
0 likes · 7 min read
Redis Cache Avalanche and Mitigation Strategies with Semaphore Rate Limiting
Top Architect
Top Architect
Oct 27, 2022 · Backend Development

Redis Cache Expiration Avalanche and Mitigation Strategies

The article explains how Redis cache expiration can cause a request avalanche that overloads databases, and presents mitigation techniques such as semaphore rate limiting, per‑key locking, fault‑tolerant cache rebuilding, and example Java code using Spring and Redis.

AvalancheCacheJava
0 likes · 8 min read
Redis Cache Expiration Avalanche and Mitigation Strategies
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 1, 2021 · Backend Development

Understanding Java Concurrency Utilities: CyclicBarrier, CountDownLatch, Semaphore, and Exchanger

This article provides a comprehensive overview of Java's core concurrency utilities—CyclicBarrier, CountDownLatch, Semaphore, and Exchanger—explaining their purposes, internal mechanisms, constructors, usage patterns, and code examples to help developers master multithreaded programming.

CountDownLatchCyclicBarrierExchanger
0 likes · 11 min read
Understanding Java Concurrency Utilities: CyclicBarrier, CountDownLatch, Semaphore, and Exchanger
政采云技术
政采云技术
Oct 22, 2021 · Fundamentals

Java Concurrency Tools: CountDownLatch, CyclicBarrier, and Semaphore

This article explains three Java concurrency tools - CountDownLatch, CyclicBarrier, and Semaphore - detailing their mechanisms, source code analysis, and practical usage scenarios with code examples.

AQSCountDownLatchCyclicBarrier
0 likes · 13 min read
Java Concurrency Tools: CountDownLatch, CyclicBarrier, and Semaphore