Results 1 to 1 of 1

Thread: Threading and locking in PHP ???

  1. #1
    Join Date
    Jul 2015

    Threading and locking in PHP ???

    Threading and locking are very important for multiple-tier sites and two-tier sites that have many contributors. They prevent two database calls from bumping into each other, so to speak, by giving editorial control to only a single transaction at a time.

    An example that clearly illustrates the value of threading and locking is a Web site that sells tickets to popular rock concerts (assigned rather than “festival” seating). Obviously, you would not want two people to be able to purchase the same seat at the same event due to a database error. The database needs some way to recognize unique requests and let only one user (or thread) make changes at any given moment, while others are locked out until the first transaction is complete.

    Unless you’re sure your project (a Web log, for instance) will have only one user at a time, be careful of committing to a nonthreaded database.

    Best Orthodontist in Delhi | Dentist in Delhi
    Last edited by Kiran674; 03-28-2016 at 06:13 AM.

Similar Threads

  1. Replies: 0
    Last Post: 04-25-2014, 12:10 PM
  2. Replies: 0
    Last Post: 04-20-2014, 04:01 AM
  3. Android-Android threading and database locking
    By bigdata in forum Android Applications
    Replies: 0
    Last Post: 11-12-2013, 08:21 PM
  4. Replies: 0
    Last Post: 10-17-2013, 07:10 AM
  5. Replies: 0
    Last Post: 10-17-2013, 06:40 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts