CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [FishMonger] simultaneous exection of script on webpage: Edit Log



Zhris
Enthusiast

Dec 18, 2014, 11:06 AM


Views: 6964
Re: [FishMonger] simultaneous exection of script on webpage

With regards to script level locking, it is common to implement a locking mechanism when dealing with cronjobs, its purpose is to prevent overlapping runs if a previous run takes longer than expected, its unrelated to preventing records being processed more than once, although inadvertently will aid with this. Depending on what the actual script does, locking is nearly always desirable as a precaution, overlaps are rarely necessary. Internal forking will take care of distributing the work load for the current batch of records.

With regards to record level locking, your suggestion of locking the row is an excellent idea, and might indeed mean that script level locking would become unnecessary. It won't help in deciding which batch of records need selecting for processing, but I feel I covered this with two ideas above ( checking status and/or datetime ).

Regards,

Chris


(This post was edited by Zhris on Dec 18, 2014, 11:15 AM)


Edit Log:
Post edited by Zhris (Enthusiast) on Dec 18, 2014, 11:12 AM
Post edited by Zhris (Enthusiast) on Dec 18, 2014, 11:14 AM
Post edited by Zhris (Enthusiast) on Dec 18, 2014, 11:15 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives