I am lucky to hear that you use the java.util.concurrent package. I did the 
same with my imagemosaic-jdbc module, starting a thread for decoding each 
tile and putting the resulting java image in a queue. 

On an AIX ppc using 4 CPUs I get a CPU usage up to 390 %, which shows me 
that the package works well. (I tested with an IBM sdk). 

I think you are going the right way. Did you look at the stack traces I sent 
you ? (Testing geotidy on an IBM sdk) 

christian 

 

Martin Desruisseaux writes: 

> I'm close to the end. The port of the EPSG factory is under progress and I'm 
> at 
> last looking at the "Threaded EPSG factory" work which was done a few years 
> ago. 
> In the process I rewrote some piece of code in order to take advantage of the 
> java.util.concurrent package, which we were not allowed to use at the time 
> the 
> threaded factories work was done. The Cache class in particular is now using 
> ConcurrentHashMap and BlockingQueue internally, which allow me to remove some 
> global locks that the previous ObjectCache still had, and maybe avoid some 
> holes 
> in usage of locks (I tested with 50 concurrent threads where each thread hits 
> the cache 10,000 time. In this context even tiny window of vulnerability 
> cause 
> about 10 failures by run. I fixed the ones I found on geotidy). I'm also 
> removing code duplication that resulted from the cohabitation of this work 
> with 
> the previous single-threaded factories. 
> 
>       Martin 
> 
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Geotools-devel mailing list
> Geotools-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
 


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to