Thanks Jerry for the insight information.  What if I declare 
MultipleDeploymentAllowed in my CAS Consumer descriptor as true, could I assume 
that the CC will be automatically multi-thread-enabled, without define it 
explicitly in the AE's pipeline?  Or if the CPM just treats all CCs to be 
single threaded regardless of the MultileDeploymentAllowed setting?

What happened if I declare an AE in the middle of a pipeline to be single 
threaded (with MultipleDeploymentAllowed set to false)?  Would the CPM just 
ignore the setting?

Thanks!

Nick

-----Original Message-----
From: Jaroslaw Cwiklik [mailto:[email protected]]
Sent: Fri 4/17/2009 1:31 PM
To: [email protected]
Subject: RE: Running CPE with multi-threading
 
At initialization time, the CPE classifies CasProcessors based on
OperationalProperties defined in the AE descriptor. Specifically, it uses
isMultipleDeploymentAllowed property to determine whether or not a
CasProcessor should be instantiated more than once to run in multiple
threads. The CPE instantiates only one instance of a CP that has
isMultiplerDeploymentAllowed=false. If such CP appears in a middle of a
pipeline, the CPE creates a single instance that is shared by all pipeline
threads. This of course implies that while one thread (pipeline) is using a
shared CP, the other thread (pipeline) is blocking until the first releases
the shared CP.

During classification of CPs, the CPE walks the list of CPs backwards, in
the order specified in a CPE descriptor. It will assign all CPs with
isMultiplerDeploymentAllowed=false
to run in a single thread right behind the OutputQueue. This assignment
continues until the first CP with isMultiplerDeploymentAllowed=true is
found. Any
remaining CPs will be running in a processing pipeline that may be scaled
out to run in multiple threads.

Jerry

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