Thursday, September 24, 2015
Tuesday, September 22, 2015
THREAD - how to stop running thread
private volatile Thread blinker;
public void stop() {
blinker = null;
}
public void run() {
Thread thisThread = Thread.currentThread();
while (blinker == thisThread) {
try {
Thread.sleep(interval);
} catch (InterruptedException e){
}
repaint();
}
}
http://docs.oracle.com/javase/7/docs/technotes/guides/concurrency/threadPrimitiveDeprecation.html
Tuesday, September 15, 2015
Monday, September 14, 2015
Saturday, September 12, 2015
Friday, September 11, 2015
JAVA - understannding recursion in conjunction with JVM stack
http://www.javamex.com/tutorials/techniques/recursion_how.shtml
Subscribe to:
Posts (Atom)
