mikeage.net Logo
mikeage.net/2006/09/17/

mikeage.net @ ה׳ שבט תשע״ח

Archive for ‍‍כ״ד אלול תשס״ו - September 17th, 2006

Limitting concurrent runs in PHP

‍‍כ״ד אלול תשס״ו - Sunday, September 17th, 2006

Most PHP tasks are designed to be run concurrently, that is, several instances of the same task can run simultaneously. For example, my home page should be displayed to all viewers, even if they're trying to access it at the same time.

Other tasks, however, should only be run one at a time. For instance, an update (cron) task should probably refuse to run (or wait) if it sees another task running. Here's how to implement that.
(more…)

Quick Map
Content +
Personal +
Archives +
Site Stuff +
RBS Weather +
Search +
Recent Images

Valid XHTML 1.1!
Printer Friendly Page
 

Last Modified: September 04, 2006 @ 02:11 CST

Memory(TRUE): 4194304/4194304
Memory(FALSE): 2967920/2977904