Hello,
I'm trying to improve the performance of a program using threads for the development of the heaviest tasks.
However, I have problems with this code, and I can´t find a solution.
What I can do?
import processing.net.*;
Client myClientC;
public class ClientThread extends Thread {
public ClientThread(String str) {
super(str);
}
public void run() {
try{println("OK");
Client myClientC = new Client(this, "192.168.1.88" , 6025);
}catch(Error e){}
}
}
void setup(){
ClientThread AAA = new ClientThread("ClientThread 1");
AAA.start();
}
void draw()
{
}