Transient modifier to sleeping thread?
Hi
I'm messing about with the 'transient' modifier when serializing a threaded object; I have written a delay into the thread to slow it down however the delay stops me from serializing it.
Does anyone know how I can apply the transient modifier to the following code?
Or perhaps give me a better way of pausing an active thread?
many thanks!
Dave
publicstaticvoid oneSec(){
try{
Thread.currentThread().sleep(200);
}// try
catch (InterruptedException e){
e.printStackTrace();
}// catch
}// oneSec()

