Simple PHP concurrency primitives