uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marshall Schor <...@schor.com>
Subject Re: Threadsafe advice for using SharedResourceObject
Date Tue, 01 Apr 2014 12:05:19 GMT

On 4/1/2014 7:05 AM, Swril wrote:
> I have an AE that I am running in a CPE. 
> The AE has a ExternalResource to a SharedResourceObject.
> I set the setMaxProcessingUnitThreadCount to 5.
> When I run the pipeline, I am getting errors like NPE which hinted that 
> things are out-of-step due to the multiple threads.
> Are there any advice on what to do for using AE with ExternalResource in a 
> CPE?

One thought: it's probably necessary to write the code you supply for the
SharedResourceObject to be thread safe.  A good source for understanding the
complex details around how to do this is
http://lmgtfy.com/?q=java+concurrency+in+practice  .

View raw message