Skip to main content
Skip table of contents

Multithreading with the Java API

When using the Java API with multiple threads, you should take care to follow the guidelines in this document to help you produce reliable, bug-free programs.

The golden rule of multithreading with the Java API is to make sure that you do not access a DocumentComparator, PipelinedComparatorS9 or DataComparator instance nor their configuration objects from multiple threads at the same time.

If you are using input multithreading (which you are by default unless you have explicitly turned it off) you should also take care to follow the guidelines in the input multithreading guide.

Guidelines for multithreading with the Java API

In the following list of guidelines “comparator” refers to either DocumentComparator, PipelinedComparatorS9 or DataComparator

Currently comparator instances may use ‘live references’ to comparator configuration and pipeline configuration objects and so altering the state of one of those objects which is shared between comparators will lead to undefined behaviour if done concurrently.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.