You are here: Mutex access on a database? « PHP Programming Language « IT news, forums, messages
Mutex access on a database?

Posted by Bill Godfrey on 10/08/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

 

Navigation:

[Reply to this 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

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