I think you misunderstood Neil.
Your applications that call "crit.pl" would not need to be modified.
Rather "crit.pl" would queue a request and wait for the response. Then a "critd.pl" would read a request from the queue, do whatever processing, send a response then read the next request.
There are several modules on CPAN that can manage inter-process queues.
In reply to Re^3: Critical section FCFS
by RonW
in thread Critical section FCFS
by aj7700
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |