Thank you very much. I'll try to explain something more about my application. The application is interfaced to a database containing a lot of exercises and solutions. An exercise consists in a description of the problem (a .ps file), an input file (exercise_code.in) and a output file (exercise_code.out). A solution is called correct iff, provided (exercise_code.in) as input, output produced by the program equals verbatim (exercise_code.out). If a solution is correct, it will be inserted in the database. So a student can see other solutions and learn. Or practice, in order to participate to ACM International Collegiate Programming Contest. As you can see, the entire process is automatizable. So far so good.

Here's a pseudo code description of my submit script.
get solution's source code from web form get a valid temp file and store solution in it # Here's my rudimental flocking system while ( -e "exercise_code.in" ) {} get from the database exercise_code.in and exercise_code.out compile solution's source code (using gcc) run the solution (it will produce executable_filename.out) File::Compare executable_filename.out and exercise_code.out if they are the same insert solution in the database else wrong answer!

I feel I could do something better. Now, I am going to examine your Simple Locking code
See you

In reply to RE: RE: Flocking in advance by larsen
in thread Flocking in advance by larsen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.