摘要:
建立三个线程,A线程打印10次A,B线程打印10次B,C线程打印10次C,要求线程同时运行,交替打印10次ABC。这个问题用Object的wait(),notify()就可以很方便的解决。public class MyThreadPrinter2 implements Runnable { ... 阅读全文
posted @ 2014-10-06 17:26
princessd8251
阅读(969)
评论(0)
推荐(0)
摘要:
缺少X11显示设置Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation... 阅读全文
posted @ 2014-10-06 15:57
princessd8251
阅读(12605)
评论(0)
推荐(0)
浙公网安备 33010602011771号