Re: Thread-safety

2001-01-30 Thread Luc Vanlerberghe
t stays in its own memory space (I mean, it uses objects or values that no other thread is modifying), the performance benefits can be enormous. Only when communicating other thread, you have to use the synchronized keyword to insert barriers for these optimizations... Luc Vanlerberghe "Klem

Re: Thread-safety

2001-01-30 Thread Luc Vanlerberghe
other. AFAIK the only mechanism the Java language provides to ensure this is the use of synchronized blocks. Luc Vanlerberghe "Klemme, Robert, myview" wrote: > > thank you paul to point me at an omission. > > > -Original Message- > > From: Paul Speed [mai

Re: Thread-safety

2001-01-26 Thread Luc Vanlerberghe
n.com/javaone/javaone00/replay.html) http://jsp.java.sun.com/javaone/javaone2000/event.jsp?eventId=754 Luc Vanlerberghe Ethan Wallwork wrote: > > "When the thread exits the synchonized block, it is required to commit all its > changes to main memory" > > Does this mean that t

Thread-safety

2001-01-25 Thread Luc Vanlerberghe
ns I raised in my earlier post is why this initialisation code isn't moved to the init() method of the generated servlet? This moves the responsability for executing the initialization exactly once to the container where IMHO it belongs... Luc Vanlerberghe [EMAIL PROTECTED] wrote:

Re: [PATCH] Tomcat4.0: org.apache.catalina.connector.http.SocketInputStream

2001-01-08 Thread Luc Vanlerberghe
Oops, apparently I tend to misread do {} while's as the pascal repeat...until statement (not the first time...). I thought the loop was skipping until the next CR/LF. Please ignore my earlier mail... Luc "Vanlerberghe, Luc" wrote: > > I noticed the possibility fo

Catalina: HttpProcessor and HttpConnector synchronize on ""?

2000-12-22 Thread Luc Vanlerberghe
) it suggest both be replaced by private Object threadSync = new Object(); Luc Vanlerberghe Index: HttpConnector.java === RCS file: /home/cvspublic/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpConnect

Re: cvs commit:jakarta-tomcat/src/examples/WEB-INF/classes/examples ShowSource.java

2000-12-11 Thread Luc Vanlerberghe
.xml file, determine what files are actually dynamic content and move these to a separate directory on the same level as webapps/ However, in a first phase, only the WEB-INF and the META-INF directory could be moved. Just firing some ideas... Luc Vanlerberghe "Craig R. McClanahan"