System.out.println("ThreadSolverServer::serviceClient...");
InputStream inStream = null;
OutputStream outStream = null;
try
{
inStream = clientConn.getInputStream();
outStream = clientConn.getOutputStream();
}
catch (IOException e)
{
System.out.println("ThreadSolverServer: Error getting I/O streams.");
System.exit(1);
}
System.out.println("Creating solver...");
ThreadSolver ts = new ThreadSolver(inStream, outStream);
System.out.println("Starting thread...");
ts.start();
try
{
sleep(1);
}
catch (InterruptedException e)
{
System.out.println("Couldn't sleep because we're interrupted...");
}
System.out.println("Suspending thread...");
ts.suspend();
try { sleep(1); }
catch (InterruptedException e)
{
System.out.println("Couldn't sleep because we're interrupted...");
}
System.out.println("Resuming thread...");
ts.resume();