PHP mutual exclusion (mutex)
问题 Read some texts about locking in PHP. They all, mainly, direct to http://php.net/manual/en/function.flock.php . This page talks about opening a file on the hard-disk!! Is it really so? I mean, this makes locking really expensive - it means each time I want to lock I\'ll have to access the hard-disk )= Can anymore comfort me with a delightful news? Edit: Due to some replies I\'ve got here, I want to ask this; My script will run only by one thread, or several? Because if it\'s by one then I