According to the website documentation on multithreading:
 
"There is also a known issue with fonts being jumbled between threads when 
using the Java2D/AWT renderer (which is used by the -awt and -print output 
options). In general, you cannot safely run multiple threads through the AWT 
renderer."
 
Three questions:
1. Am I correct in my cursory observation that this is also true for the PCL 
renderer?
 
2. If it is the case that the PCL renderer also suffers, can someone elaborate 
on the cause of these problems? A high level, very basic understanding is all 
I'm curious for. I'm definitely inexperienced with thread related programming, 
but from what I gather, the AWT java classes are thread safe, correct? Am I 
making an illogical jump from reading "AWT renderer" in the FOP docs and 
assuming that the problem has something to do with the AWT classes in Java?
 
3. Any general pointers on how to use multithreading profitably with the PCL 
renderer? Right now, the app I wrote (standalone socket server) is 
multithreaded but synchronizes access to the Transformer class which seems to 
solve my problem from #1 but basically makes it a single thread program again.
 
Thanks for any insight.

Reply via email to