
10. 线程 Thread
普通网友
这个作者很懒,什么都没留下…
展开
-
线程初步
import java.io.IOException;public class CreateThread { public static void main(String[] args) { Thread first = new TryThread("三丰翻译 2011-10-06 11:50:18 · 756 阅读 · 0 评论 -
10. 11. 1. 线程同步 Test Synchronized method
public class TestSynchronized { int taskID;//任务ID public static void print(String msg){//定义一个打印方法 System.out.println(Thread.curren翻译 2011-10-06 11:52:29 · 906 阅读 · 0 评论 -
10. 9. 1. 丑陋的表 Create a thread to update Swing
import java.awt.Color;import java.awt.Font;import java.awt.Graphics;import java.text.SimpleDateFormat;import java.util.Date;import翻译 2011-10-06 12:20:02 · 1065 阅读 · 0 评论