PHP Classes

Classes of Matthew McConnell

Recommend this page to a friend!
  All class groups  >  All authors  >  Classes of Matthew McConnell (1)  >  Mission progress status  >  Reputation  
Picture of Matthew McConnell
Name: Matthew McConnell <contact>
Classes: 1
Country: United Kingdom
Age: 38
All time rank: 176978 in United Kingdom
Week rank: 215 Up12 in United Kingdom Up
All time users: 1613
Week users: 0
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image Queue Class  
Manage a queue of users competing to run a task
This class can be used to manage a queue of users competing to execute a task that can only be run by a single user at a time.

The class stores in a MySQL table the queue of users that want to execute a task.

An entry in the queue table is added for each user that wants to run the task.

While the current user is not the next to run the task, he must wait for his turn.

When the first user in the queue finishes to run the task, its queue entry is deleted to pass the turn to the next user in the queue.
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: 85% 70% 70% 50% - - 61% 1035
Month: Not yet rated by the users


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z