Synchronization between threads

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • john j123
    New Member
    • Feb 2012
    • 1

    Synchronization between threads

    My question is how to prevent a script in the PHP code to do its work until another thread finish working with another script (that it have)
    Hint: I want to prevent any php page to access the database while another script updates values in that database.
    Thank you
  • helimeef
    New Member
    • Sep 2007
    • 77

    #2
    If script1.php is waiting on script2.php, have script2.php call script1.php after it's done executing.

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      I want to prevent any php page to access the database while another script updates values in that database.
      usually the database takes care of that itself by locking the table (row) in operation.

      Comment

      Working...