You are here: concurrency, locks, multi-user app. « PHP Programming Language « IT news, forums, messages
concurrency, locks, multi-user app.

Posted by awebguynow on 10/04/37 11:36

I'm investigating this subject, particularly DB interactions, and could
use input.
It seems the dominant consensus, in these discussions is "use flock()
...."
I guess this would be similar to, in Java terms, using synchronized
(objLock) { ... }

This lends itself to OOP modularization, localization of reads and
writes, using locks.

Also, MySQL might say in the manual,
this storage engine locks at the [page | row | ...] level.

But what does this get you ?
If the goal is consistent data, and no simultaneous writes, its a
worthy goal.
But how should the application be designed ?
Do you limit access to reports, displays, forms on data that is
currently being written ?
If a PHP flock() or DB lock impedes access, what then ?
Does it wait a time slice then try ? or throw error ? fatal error ?
recover ?

Any good articles, references ? any from Wrox, O'Reilly ? TIA for
responses

 

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

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