in reply to Critical section FCFS

Perhaps a queuing service instead. Input programs write to the queue and crit.pl reads the queue on its own time. Redis or RabbitMQ come to mind.

Neil Watson
watson-wilson.ca

Replies are listed 'Best First'.
Re^2: Critical section FCFS
by aj7700 (Initiate) on Jul 14, 2016 at 03:13 UTC
    Neil, this would require a queuing application. Just wondering if there is another way which doesn't involve other applications. Thank you

      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.