Practical mod_perl / HTML Book /



previous page: 19.1. mod_perl and DBM
  
page up: HTML Version of the book
  
next page: 19.2.1. Deadlocks

19.2. Resource Locking


Database locking is required if more than one process will try to modify the data. In an environment in which there are both reading and writing processes, the reading processes should use locking as well, since it's possible for another process to modify the resource at the same moment, in which case the reading process gets corrupted data.

We distinguish between shared-access and exclusive-access locks. Before doing an operation on the DBM file, an exclusive lock request is issued if a read/write access is required. Otherwise, a shared lock is issued.

 

Continue to:

  • prev: 19.1. mod_perl and DBM
  • Table of Contents
  • next: 19.2.1. Deadlocks







TOP
previous page: 19.1. mod_perl and DBM
  
page up: HTML Version of the book
  
next page: 19.2.1. Deadlocks


Menu

  • HTML Book
  • PDF Book
  • Download Code
  • Table of Contents
  • Errata
  • mod_perl2 User's Guide
  • Sitemap

Search


Add to Google




Creative Commons License


Written by
Eric Cholet (Logilune) and
Stas Bekman (StasoSphere & Free Books).


[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007 StasoSphere.com