• About Us
  • Blog
  • Basket
  • Account
  • Sign In

Java V3.1 Documentation

You are viewing an old version of the documentation. For the latest, please go here: Java V3.2

Disabling Multi Threaded Matching

Note that this no longer applies to version 2.2.84 and above. See the new Multi-Threading page.

From Version, Muti-Threading has been implemented in the 51Degrees Java solution to decrease the time taken to successfully identify a device. Multi-Threading can be disabled by changing the value of FORCE_SINGLE_PROCESSOR in the src/core/fiftyone/mobile/detection/Constants.java to true. See the following code example.

 * A class that holds constant values that will be used throughout the code.
 * @author 51Degrees.mobi
 * @version
public class Constants {
     * Indicates whether to run in Single or Multi-Threaded mode.
    public static final boolean FORCE_SINGLE_PROCESSOR = true;

After making this change, the package needs to be re-compiled.