Asynchronous Processing

Semaphore

English

Overview

A concurrency-control mechanism that uses a counter to limit how many callers can access a resource at the same time.

Details

Unlike a mutex (an exclusive lock), which permits only one accessor at a time, a semaphore can permit access up to a predetermined count, such as "up to 3 at once." It's used, for example, to limit the number of simultaneous database connections or concurrent API calls.

More Programming terms