Dear Monks,
I have a simple web-interface in PHP (aka a textarea only) and when the user enters some data, I call a Perl program to run externally. The thing is that this program relies on quite a few extra standalone software to produce its final result, some of which are quite time-consuming. I was thus thinking if it is worth implementing a queuing system for this perl program, which would mean that if for example 5 users submit a query at the same time, the computer will only execute one and put the others "on hold".
I have zero experience with these things, so any start-tips would be greatly appreciated... Also, do you think the queue should be done within the perl script? Or the PHP page can somehow do it before-hand?
The only thing I can think about is that I could have some kind of variable that holds my result (the final result after everything has run is that an initially empty variable gets a value and that value is the output to the user, so in that case I could "know" that the whole thing has finished executing (for the 1st user that submitted).
Thank you beforehand!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.