Documentation Index
Fetch the complete documentation index at: https://docs.loqate.com/llms.txt
Use this file to discover all available pages before exploring further.
This class demonstrates how to create multiple threads for processing with the Loqate API. In this example, 16 threads are created for sample purposes.
package lqtmultithreadtestdriver;
import java.io.*;
import java.net.*;
import java.util.*;
/**
* Sample Code Test Driver
* This class is responsible for creating multiple threads (16 in this case, for sample purposes)
* @author loqate.com
*/
public class LqtMultithreadTestDriver {
static
{
// Load the JNI library
System.loadLibrary("lqtjava");
}
public static void main(String[] args) {
// Create and run threads
for (int threadNo = 1; threadNo <= 16; threadNo++)
{
(new Thread(new LqtThreadRunner())).start();
}
}
}