On Windows javac uses definitely only one processor.

Ciao

Thomas



At 05:40 30.01.2002 -0500, Sean Owen wrote:
>Yeah, I don't believe javac will benefit from multiple processors. 
>However, you can still take advantage of multiple processors, maybe, if 
>you can split up your compilation into two or more independent, parallel 
>compiles.
>
>For example I've organized my code on a J2EE project into three groups: 
>code for the web application, code for the EJBs, and code used by both 
>(common). Once the common code is compiled, the web app and EJBs can both 
>be compiled, but neither of the two depends on the other.
>
>So, you can use Ant's "parallel" tag to make the web app and EJB 
>compilation targets run in parallel, which will use two processors. The 
>Ant output gets mixed up, but it's not a big deal.
>
>Also, installing and using the jikes Java compiler will speed up your 
>compilation significantly.
>
>Sean
>
>
>On Tuesday, January 29, 2002, at 04:39  AM, Thorbjørn Ravn Andersen wrote:
>
>>
>>tirsdag januar 29 2002 kl. 02:53 AM skrev Antony Stace:
>>
>>>I have a Struts project with a number of files and want to compile the 
>>>source files quicker.
>>>Does anyone know if the java compilers and runtime environments included 
>>>with Suns JDK 1.3 and 1.4 systems
>>>take advantage of a multiprocessor linux system(Assume a fairly recent 
>>>stable kernel) or will they use(in a 2 processor
>>>system) just one processor.  I want to speed up compile times but am not 
>>>sure if a multiprocessor system will do it.
>>
>>If you use a JVM with native threads then the operative system manages 
>>the individual threads, and may schedule them on different processors (if 
>>you use green threads, then the JVM does the thread managing itself in a 
>>single process, which will therefore use one processor only).
>>
>>As far as I know, javac is single-threaded, so that you will not benefit 
>>in doing a single compile.  If you can initiate several javac-processes 
>>at the same time, you will benefit.
>>
>>You may also want to look into whether your web container provides for a 
>>command-line batch compiler for jsp-pages.
>>For code, you may need a suitable IDE, but I do not have any suggestions.
>>
>>--
>>   Thorbjørn Ravn Andersen
>>   Scandiatransplant, c/o Christian Mondrup
>>   89 49 53 01
>>   http://biobase.dk/~tra
>>
>>
>>--
>>To unsubscribe, e-mail:   <mailto:struts-user-> 
>>[EMAIL PROTECTED]>
>>For additional commands, e-mail: <mailto:struts-user-> 
>>[EMAIL PROTECTED]>
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Thomas Eichberger - Software und Schulungen - Spezialisiert auf Java
A-1230 WIEN, Endresstr. 103/3
phone/box/fax: 01-8861685 Web: www.java.at E-Mail: [EMAIL PROTECTED]
"Every job is a self-portrait of the person who did it. Autograph yours 
with excellence."
"For every complex question there is an answer that is clear, simple and wrong."


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to