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

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 2.1.11.2, 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 2.1.16.1
 */
public class Constants {
 
    /**
     * Indicates whether to run in Single or Multi-Threaded mode.
     */
    public static final boolean FORCE_SINGLE_PROCESSOR = true;
 
    //etc...

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

Need Help?