This may not be quite precise enough. Your Annotators will be instantiated multiple times, so that a single *instance* of an annotator will not be run on multiple threads at once. So - if you have non-static fields in your annotator, they do not need to be accessed with threading in mind. But if you make use of "static" fields, there is only one instance of these, so access to them must be thread-safe.
If your *application* (not your annotator) is multi-threaded, it will need to be thread-safe. You can find relevant information about this in the tutorial and reference docs for UIMA (search for "thread"). -Marshall Michael Baessler wrote: > Benjamin Sznajder wrote: >> Hi all, >> >> I am interested in using multi-threading in UIMA. >> My aim is that the flow runs several annotators in parallel. >> One of my annotators is not thread-safe. My question is, then, >> Does the UIMA parallelism ( setting "MultipleDeployment=true") requires >> that annotators on which this flag is set, are thread-safe? >> >> Regards, >> Benjamin. >> >> > Yes, your annotator have to be thread-safe when you want to run them > multi-threaded. > > -- Michael > >
