• PHP Video Tutorials

PHP - Mutex Functions


Advertisements

Mutex class

Static methods contained in the Mutex class can provide direct access to Posix Mutex functionality.

Class Synopsis

Mutex {
   /* Methods */
   final public static long create([ boolean $lock ] )
   final public static boolean destroy( long $mutex )
   final public static boolean lock( long $mutex )
   final public static boolean trylock( long $mutex )
   final public static boolean unlock( long $mutex [, boolean $destroy ] )
}

Mutex class removed in pthreads v3.

Sr.No Function & Description
1

Mutex::create

Function can create a Mutex.

2

Mutex::destroy()

Function can destroy a Mutex.

3

Mutex::lock()

Function can acquire Mutex.

4

Mutex::trylock()

Function can attempt to acquire the Mutex.

5

Mutex::unlock()

Function can release the Mutex.

php_function_reference.htm

Useful Video Courses


Video

PHP Online Training

45 Lectures 9 hours

Malhar Lathkar

Video

Become PHP Facebook Developer: Password-Less Authentication

34 Lectures 4 hours

Syed Raza

Video

Ultimate PHP & MySQL Web Development Course & OOP Coding

84 Lectures 5.5 hours

Frahaan Hussain

Video

Learn PHP from Scratch

17 Lectures 1 hours

Nivedita Jain

Video

E Commerce Website Development In PHP With PDO

100 Lectures 34 hours

Azaz Patel

Video

PHP in Telugu

43 Lectures 5.5 hours

Vijay Kumar Parvatha Reddy

Advertisements