Reply to Mutex access on a database?

Your name:

Reply:


Posted by Bill Godfrey on 11/02/62 11:26

Hello. I have a database which I have abstracted off with a set of
functions I have written. (So all the correct quoting and unquoting are all
in one place.)

/* Simplified code. */

$tokenCount = getTokenCount($userIdx);
/* Context switch! */
setTokenCount($userIdx, $tokenCount + 1);

But what if another process perfoms a get on the same record between the
get and the set of the first process? What I could do with is a mutex.

Do they please exist for PHP running under Apache?

Bill, lost update.

--
http://billpg.me.uk/ usenet(at)billpg(dot)me(dot)uk

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация