首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

(转)使用Java NIO编写高性能的服务器 文件上载

2012-11-07 
(转)使用Java NIO编写高性能的服务器 文件下载原文:http://hi.baidu.com/chenweifighting/blog/item/2e68f

(转)使用Java NIO编写高性能的服务器 文件下载

原文:http://hi.baidu.com/chenweifighting/blog/item/2e68f0cbaef0244ef21fe784.html

+ total
????????????+?"bytes in "?+ last +?"s.");
??????}?catch?(IOException e) {
????????e.printStackTrace();
??????}
????}
??}

??public static?void?main(String[]?args)?throws?IOException?{
????ExecutorService exec = Executors.newFixedThreadPool(SIZE);
????for?(int?index =?0; index < SIZE; index++) {
??????exec.execute(new?Download(index));
????}
????exec.shutdown();
??}
}

?

?

热点排行