搜索资源列表
thread
- java 线程 静态锁,对象锁, synchronized 是锁方法还是锁对象?还是锁类?如何实现?? 部分代码如下, public static Object lock=new Object() //静态锁,锁类,不是锁对象了!!所以两个线程同时 运行两个 TestThread 的execute( ),也可以同步!!! public void execute(){ // synchronized(lock){ for(int i=0 i<
TestThread
- 用java + MyEclipse 7.0做的简单的物理碰撞小程序-简单的物理碰撞
TestThread
- 打老鼠的实现: java开发,使用swing控件和鼠标事件。 JFrame类开发的窗体.-Mice fight realization: java development, use swing control and mouse events. JFrame class developed form.
TestThread
- 实现一个数据单元,包括学号和姓名两部分。 编写两个线程,一个线程写数据,一个线程读数据。 要求每写一次就往出读一次-Implement a data unit, including the student number and name of two parts. The preparation of two threads, one thread to write data, a thread reading the data. Asked each to write once sta
xiancheng
- 应用Java中线程的概念写一个Java程序(包括一个测试线程程序类TestThread,一个Thread类的子类PrintThread)。在测试程序中用子类PrintThread创建2个线程,使得其中一个线程运行时打印10次“线程1正在运行”,另一个线程运行时打印5次“线程2正在运行”。-Applications in Java thread concept to write a Java program (including the class TestThread a test multit
testThread
- java多线程小例子,生产者和消费者关系模式。-java multithreading small example, producers and consumers relational schema.
TestThread
- 测试线程的代码,可以展现出CPU抢先的时间片内执行的程序-Testing threaded code, you can show the first program in the CPU time slice execution
