Thanks Adam, Burn, for your detailed explanation.  In my case, I've got only 
one cas consumer that is to serialize each CAS to an individual file.  Not 
resource contention among different CASs at the consumer end.  So I guess I 
should have the CAS consumer bundled with the AE pipeline, right?  Can a CPE be 
configured without any CAS consumer?

In the diagram mentioned in Adam's email, are the input/output queue size the 
same as the CAS Pool Size?  Or 1/2 of the pool size?

Thanks!

Nick

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Adam Lally
Sent: Thursday, April 16, 2009 10:25 PM
To: [email protected]
Subject: Re: Running CPE with multi-threading

On Thu, Apr 16, 2009 at 6:39 PM, Burn Lewis <[email protected]> wrote:
> My understanding is that there is a separate CasConsumer thread and only the
> portion of the pipeline before the first CasConsumer runs in the pipeline
> thread(s).  The first CasConsumer and all following CasProcessors run in
> this extra thread.  This avoids any multi-threading issues when the
> CasConsumer updates external resources.  You can of course implement your
> consumers as regular AEs and manage the synchonization yourself.
>
That's correct - there's a diagram of how that works in this section
of the documentation:
http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/references/references.html#ugr.ref.xml.cpe_descriptor.overview

-Adam
This communication, along with any attachments, is covered by federal and state 
law governing electronic communications and may contain company proprietary and 
legally privileged information.  
If the reader of this message is not the intended recipient, you are hereby 
notified that any dissemination, distribution, use or copying of this message 
is strictly prohibited.  
If you have received this in error, please reply immediately to the sender and 
delete this message.  Thank you.

Reply via email to