Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads WEB Code JSP/Java
  • Category : JSP/Java
  • Tags :
  • Update : 2012-11-26
  • Size : 24kb
  • Downloaded :0次
  • Author :fir****
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
java 线程 静态锁,对象锁, synchronized 是锁方法还是锁对象?还是锁类?如何实现?? 部分代码如下, public static Object lock=new Object() //静态锁,锁类,不是锁对象了!!所以两个线程同时 运行两个 TestThread 的execute( ),也可以同步!!! public void execute(){ // synchronized(lock){ for(int i=0 i<20 i++){ try { Thread.sleep(30) } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace() } System.out.println(Thread.currentThread().getName()+Thread.currentThread ().getName()+" "+i) } } }
Packet file list
(Preview for download)
thread
......\.classpath
......\.project
......\bin
......\...\thread1
......\...\.......\TestThread.class
......\...\.......\ThreadA.class
......\...\.......\Thread_2.class
......\...\thread2
......\...\.......\TestThread.class
......\...\.......\ThreadA.class
......\...\.......\Thread_2.class
......\...\thread3
......\...\.......\TestThread.class
......\...\.......\ThreadA.class
......\...\.......\Thread_2.class
......\...\thread3_2
......\...\.........\TestThread.class
......\...\.........\ThreadA.class
......\...\.........\Thread_2.class
......\...\thread4
......\...\.......\TestThread.class
......\...\.......\ThreadA.class
......\...\.......\Thread_2.class
......\...\thread_lock_be_modify
......\...\.....................\Thread_lock_be_modify$Thread_lock_be_modifyHolder.class
......\...\.....................\Thread_lock_be_modify.class
......\...\thread_static_1
......\...\...............\TestThread.class
......\...\...............\ThreadA.class
......\...\...............\Thread_2.class
......\...\thread_static_1_2
......\...\.................\TestThread.class
......\...\.................\ThreadA.class
......\...\.................\Thread_2.class
......\...\thread_static_1_2_2
......\...\...................\TestThread.class
......\...\...................\ThreadA.class
......\...\...................\Thread_2.class
......\src
......\...\thread1
......\...\.......\Thread_2.java
......\...\thread2
......\...\.......\Thread_2.java
......\...\thread3
......\...\.......\Thread_2.java
......\...\thread3_2
......\...\.........\Thread_2.java
......\...\thread4
......\...\.......\Thread_2.java
......\...\thread_lock_be_modify
......\...\.....................\Thread_lock_be_modify.java
......\...\thread_static_1
......\...\...............\Thread_2.java
......\...\thread_static_1_2
......\...\.................\Thread_2.java
......\...\thread_static_1_2_2
......\...\...................\Thread_2.java
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.