Antwort: Re: AWTRenderer thread safe?

2003-06-16 Thread reto . blunschi

I have investigated this and have done some multithreaded tests with
AWTRenderer a few months ago. The conclusions can be found in the archives
of this list.
Summary:
- AWTRenderer and all subclasses of it (TIFFRenderer...) are NOT
threadsave.
- It is not threadsave because the underlaying AWT libs are not threadsave.
It does not help to use different instances of REnderer, Driver , or
anything else. You need different VMs to run AWTRenderer concurrently.
- There is no simple way to adjust AWTRenderer to be threadsave. It
probabaly needs a complete redesign - I don't think it is even possible to
make an AWTRenderer threadsave, since it would have to be written without
using AWT.
cheers,
Reto




|-+---
| |   J.Pietschmann |
| |   [EMAIL PROTECTED]|
| |   de |
| |   |
| |   14.06.2003 19:37|
| |   Bitte antworten |
| |   an fop-user |
| |   |
|-+---
  
---|
  | 
  |
  |An:  [EMAIL PROTECTED]   
|
  |Kopie:   
  |
  |Thema:   Re: AWTRenderer thread safe?
  |
  
---|




Victor Mote wrote:
 My suggestion then would be to download 0.20.5  see whether it fixes
your
 problem. I think it will,

I don't think so. The issue with randomly changing font families
and font weights in the AWT renderer has been reported before,
and I vaguely remember this was deemed a problem with JDK 1.4.
Searching the mailing list archives may turn it up.
Maybe upgrading to 1.4.1_03 is of some help...

J.Pietschmann


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








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



Antwort: Re: AWTRenderer thread safe?

2003-06-16 Thread reto . blunschi

I agree with you. I am not at all an AWT/Swing expert. When I was
investigating this it turned out to be surprisingly difficult to get
reliable information about threadsafty of these classes. Especially when I
tried to find out where exactly the problem is inside AWT/Swing and what
could be done to work around it. It seems that serverside usage of AWT
classes is not very common.
So, the analysis I provided comes mostly from the bits of information I
found and analysis of AWT/Swing sources conducted by  myself and a few
others that I consider more knowledable than myself in these matters.
Anyway, if there is anyone around with more AWT knowledge, I would
appreciate their comments.
cheers,
Reto


|-+---
| |   Victor Mote   |
| |   [EMAIL PROTECTED]|
| |  |
| |   |
| |   16.06.2003 16:22|
| |   Bitte antworten |
| |   an fop-user |
| |   |
|-+---
  
---|
  | 
  |
  |An:  [EMAIL PROTECTED] 
|
  |Kopie:   
  |
  |Thema:   Re: AWTRenderer thread safe?
  |
  
---|




Reto wrote:

 I have investigated this and have done some multithreaded tests with
 AWTRenderer a few months ago. The conclusions can be found in the
archives
 of this list.
 Summary:
 - AWTRenderer and all subclasses of it (TIFFRenderer...) are NOT
 threadsave.
 - It is not threadsave because the underlaying AWT libs are not
 threadsave.
 It does not help to use different instances of REnderer, Driver , or
 anything else. You need different VMs to run AWTRenderer concurrently.
 - There is no simple way to adjust AWTRenderer to be threadsave. It
 probabaly needs a complete redesign - I don't think it is even possible
to
 make an AWTRenderer threadsave, since it would have to be
 written without
 using AWT.

Yes, your comments are the ones that I referenced in my answer, and they
were very helpful. The only thing that troubles me is that although it is
well-documented that Swing classes are not thread-safe, I can find nothing
similar for AWT, so I am hesitant to list that as the cause. For now, I
have
documented that the AWT Renderer should not be multi-threaded, but have not
documented why.

Victor Mote


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







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