H
hn.ft.pris
My problem is like this , I have written a CGI in Perl , which collect
the input of users and use "system" to call a C program to dealing with
the data , then read the output of the C program , at last print to the
screen . The above data all exchanged in files .
It works well except that when there is an invoke the C program would
be called and it loads a big dictionary which costs more than 5 second
, so users have to wait a long time to see the result...
There are suggestions that I should run the C program as a daemon , and
use IPC to exchange data between C and Perl program , but I'm confused
which kind of IPC suits my case , and what I should learn to make it .
the input of users and use "system" to call a C program to dealing with
the data , then read the output of the C program , at last print to the
screen . The above data all exchanged in files .
It works well except that when there is an invoke the C program would
be called and it loads a big dictionary which costs more than 5 second
, so users have to wait a long time to see the result...
There are suggestions that I should run the C program as a daemon , and
use IPC to exchange data between C and Perl program , but I'm confused
which kind of IPC suits my case , and what I should learn to make it .