Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javaÔÚforÑ­»·ÖÐʹÓÃconcurrent°ü½øÐжàÏ̱߳à³Ì

  ×î½üÔÚ×ö½Ó¿ÚµÄʱºò×ÜÊÇÓöµ½Ò»¸öforÓï¾äÖРÿ´ÎÑ­»·»áÉæ¼°ºÜ¶à×ÊÔ´,°üÀ¨ ftp io db,×ÜÏëÓÃÏÖ³¡À´¿ØÖÆÌ«.ÕÒµ½Ò»ÆªÎÄÕ  http://daoger.javaeye.com/blog/142485 Ð´µÄ²»´í.×Ô¼ºÐ´ÁË2¸ödemo
1. Ö÷Ï̲߳»µÈ´ý
 public class CopyOfTestThreadPool {
 public static void main(String args[]) throws InterruptedException {
  // only two threads
  ExecutorService exec = Executors.newFixedThreadPool(20);
  List<Long> list = new ArrayList<Long>();
  for(int index = 0; index < 1000000; index++){
   list.add(System.nanoTime());
  }
  
  long start = System.currentTimeMillis();
  for (Long long1 : list) {
   final Long l = long1;
   exec.execute(new Runnable(){
    public void run() {
     System.out.println(l);
     try {
      Thread.sleep(5000);
     } catch (InterruptedException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
     }
     
    }});
  }
  // must shutdown
  exec.shutdown();
   long end = System.currentTimeMillis();
   System.out.print("¹²¼ÆÓÃʱ ");
   System.out.println(end  - start);
 }
}
2 Ö÷Ï̻߳áµÈ´ý
public class TestCountDownLatch {
 public static void main(String[] args) throws InterruptedException {
  long start = System.currentTimeMillis();
  // ¿ªÊ¼µÄµ¹ÊýËø
  final CountDownLatch begin = new CountDownLatch(1);
  // ½áÊøµÄµ¹ÊýËø
  final CountDownLatch end = new CountDownLatch(10000);
  // Ê®ÃûÑ¡ÊÖ
  final ExecutorService exec = Executors.newFixedThrea


Ïà¹ØÎĵµ£º

sql 2005 ´æ´¢¹ý³Ì·ÖÒ³ java ´úÂë

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ ......

ʹÓÃJava·´Éä»úÖƵõ½ÀàµÄ½á¹¹ÐÅÏ¢

ʹÓÃJava·´Éä»úÖƵõ½ÀàµÄ½á¹¹ÐÅÏ¢
¹Ø¼ü×Ö: java·´Éä ÀàµÄ½á¹¹
ʹÓÃJava·´Éä»úÖƵõ½ÀàµÄ½á¹¹ÐÅÏ¢
´úÂëÈçÏ£º
Java´úÂë
package com.youdao.wm;   
  
import java.lang.reflect.Constructor;   
import java.lang.reflect.Field;   
import jav ......

Lucene£º»ùÓÚJavaµÄÈ«ÎļìË÷ÒýÇæ¼ò½é

LuceneÊÇÒ»¸ö»ùÓÚJavaµÄÈ«ÎÄË÷Òý¹¤¾ß°ü¡£
»ùÓÚJavaµÄÈ«ÎÄË÷ÒýÒýÇæLucene¼ò½é£º¹ØÓÚ×÷ÕߺÍLuceneµÄÀúÊ·
È«ÎļìË÷µÄʵÏÖ£ºLueneÈ«ÎÄË÷ÒýºÍÊý¾Ý¿âË÷ÒýµÄ±È½Ï
ÖÐÎÄÇзִʻúÖƼò½é£º»ùÓÚ´Ê¿âºÍ×Ô¶¯ÇзִÊËã·¨µÄ±È½Ï
¾ßÌåµÄ°²×°ºÍʹÓüò½é£ºÏµÍ³½á¹¹½éÉܺÍÑÝʾ
Hacking Lucene£º¼ò»¯µÄ²éѯ·ÖÎöÆ÷£¬É¾³ýµÄʵÏÖ£¬¶¨ÖƵÄÅÅÐò£¬Ó ......

JAVAÖз½·¨ºÍ±äÁ¿Ôڼ̳ÐÖеĸ²¸ÇºÍÒþ²Ø

http://renyanwei.javaeye.com/blog/258304
ÎÒÃÇÖªµÀ£¬ÔÚJAVAÖУ¬×ÓÀà¿ÉÒԼ̳и¸À࣬Èç¹û×ÓÀàÉùÃ÷µÄ·½·¨Ó븸ÀàÓÐÖØÃûµÄÇé¿öÔõô°ì£¬´ó»ï¶ù¶¼ÖªµÀÒªÊÇÖØд£¬µ«ÊÇʵ¼ÊÉÏÕâÓÖ·ÖΪÁ½ÖÖÇé¿ö£¬¾ÍÊÇ·½·¨ºÍ±äÁ¿Ôڼ̳ÐʱµÄ¸²¸ÇºÍÒþ²ØÎÊÌ⣬ÕâЩ¸ÅÄîÐԵĶ«Î÷¿´ËÆÎÞÁÄ£¬µ«ÊÇÔÚÃæÊÔ»òÕßÊÇSCJPÈÏÖ¤ÌâÖÐΧÈÆÕâЩÊǻᾭ³£Åöµ½µÄ£¬ËùÒÔÕâÀï ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ