|
Take a look at the Drawbacks and Alternatives section at the following URL:Threads are actually expensive objects, but not as expensive as a new process. They are just very easy to use in a Java program (even a Enterprise Application Server), but for any high load system you will pool the threads and use them for whatever jobs are needed. Also threads in modern JVM's are normally impemented by the underlying operating system allowing them to spread over multiple cpus (while still being able to easily talk to each other). The multi-task capability of Java programs is getting more and more important as modern CPU's get more and more cores which - I understand - is not as easily done from with C or other programming languages on the i.
http://en.wikipedia.org/wiki/Common_Gateway_Interface
It would appear that we don't have some of the issues. We have a
compiled language: RPG, we have processes that, once started, stay
running for as long as the server is up. That's where IBM i OS steps
in because it has, in my opinion, a more refined approach to managing
large workloads and other systems aren't built with the same thing in
mind.
Note also the stated comment on that page concerning J2EE. They
basically say the advantage of J2EE is that instead of creating a
process (aka Job), they are able to instead create a smaller unit - a
thread. I would be curious to know how much CPU time is required to
create a new J2EE thread vs. have Apache hand-off a "CGI" request to
an existing job?
Which begs the question, are we really doing CGI programming, or do weCGI refers to the original way to call external programs from the webserver process and getting the result back. It originates on Unix where this usually means forking a process which is a somewhat expensive operation especially for small programs, and several means was quickly found to essentially allow the webserver to pull in external code snippets for execution. This is, however, web server specific.
just call it that because it sort of feels like it?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.