J
JR
Hi. I have about about two dozens CGI scripts written in Perl that I
need to convert to Java. The machine on which these scripts reside
doesn't support servlets, so I'm stuck with converting basic CGI from
one language to another. With any CGI, regardless of language, is it
necessary to manage threads, or is that taken care of by the server
handling the request? My limited understanding is that a CGI request
will spawn a new process, and create a unique thread for that process.
Also, I'd like one day to be able to move the Java CGI programs that I
will write as part of the above conversion to a machine that does
support servlets. I'd appreciate any recommendations as to references
that clearly explain how to handle the multi-threaded capability of
servlets. My only experience with threads so far is work from a
chapter of Ivor Horton's Beginning Java 2. The concepts seem pretty
difficult to grasp, and I'm not sure how I could apply them to an a
servlet that may have from x to y number of possible threads. It
would be awesome if there were a thread manager class that handled
threads for the programmer, but I'm probably missing the point of
threads to hope for that.
Thanks.
JR
need to convert to Java. The machine on which these scripts reside
doesn't support servlets, so I'm stuck with converting basic CGI from
one language to another. With any CGI, regardless of language, is it
necessary to manage threads, or is that taken care of by the server
handling the request? My limited understanding is that a CGI request
will spawn a new process, and create a unique thread for that process.
Also, I'd like one day to be able to move the Java CGI programs that I
will write as part of the above conversion to a machine that does
support servlets. I'd appreciate any recommendations as to references
that clearly explain how to handle the multi-threaded capability of
servlets. My only experience with threads so far is work from a
chapter of Ivor Horton's Beginning Java 2. The concepts seem pretty
difficult to grasp, and I'm not sure how I could apply them to an a
servlet that may have from x to y number of possible threads. It
would be awesome if there were a thread manager class that handled
threads for the programmer, but I'm probably missing the point of
threads to hope for that.
Thanks.
JR