代码搜索:thread

找到约 10,000 项符合「thread」的源代码

代码结果 10,000
www.eeworm.com/read/465618/7050539

java thread_2.java

package thread_static_1_2_2; class TestThread { public static Object lock=new Object(); //静态锁,锁类,不是锁对象了!!所以两个线程同时 运行两个 TestThread 的execute(),也可以同步!!! public void execute(){ //
www.eeworm.com/read/465618/7050540

java thread_2.java

package thread4; class TestThread { public synchronized void execute(){ //synchronized 锁定的是对象 而不是类,参见:Thread_2.java。所以当有连个对象的不同的线程里边运行是,还是不能同步的!!! for(int i=0;i
www.eeworm.com/read/465618/7050541

java thread_2.java

package thread_static_1_2; class TestThread { public static Object lock=new Object(); //静态锁,锁类,不是锁对象了!!所以两个线程同时 运行两个 TestThread 的execute(),也可以同步!!! public void execute(){ //
www.eeworm.com/read/465618/7050542

java thread_2.java

package thread1; class TestThread { public void execute(){ //synchronized,未修饰 for(int i=0;i
www.eeworm.com/read/465618/7050543

java thread_2.java

package thread_static_1; class TestThread { public static Object lock=new Object(); //静态锁,锁类,不是锁对象了!!所以两个线程同时 运行两个 TestThread 的execute(),也可以同步!!! public void execute(){ // s
www.eeworm.com/read/465618/7050546

class thread_2.class

www.eeworm.com/read/465618/7050549

class thread_2.class

www.eeworm.com/read/465618/7050554

class thread_2.class

www.eeworm.com/read/465618/7050557

class thread_2.class

www.eeworm.com/read/465618/7050560

class thread_2.class