php8.5
Home/ Manual/ reference / sync/ The SyncSemaphore class

The SyncSemaphore class

A cross-platform, native implementation of named and unnamed semaphore objects.

Intro

A cross-platform, native implementation of named and unnamed semaphore objects.

A semaphore restricts access to a limited resource to a limited number of instances. Semaphores differ from mutexes in that they can allow more than one instance to access a resource at one time while a mutex only allows one instance at a time.

Class synopsis

class SyncSemaphore { }

Syncsemaphore

In this section

Source: reference/sync/syncsemaphore.xml · from the official PHP manual (php/doc-en)