![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
云游四方
这个作者很懒,什么都没留下…
展开
-
ant配置文件
[code="xml"] ...原创 2009-12-08 14:41:36 · 78 阅读 · 0 评论 -
java获取客户端MAC地址
[code="java"]import java.io.IOException;import java.net.DatagramPacket;import java.net.DatagramSocket;import java.net.InetAddress;public class UdpGetClientMacAddr { private String sRemot...原创 2009-12-09 13:14:24 · 485 阅读 · 1 评论 -
如何利用Eclipse Profile Plugin对Tomcat进行性能监控分析
目前新版本的Eclipse在启动应用服务器的时候有一个新的选项:Start the server in profiling mode。 但是我在一开始点击这个按钮的时候,出现了错误提示信息: Could not launch in profiling mode because no profilers are configured. 经过一番搜索,发现要求安装TPTP(Test...原创 2009-12-11 16:26:32 · 318 阅读 · 0 评论 -
主线程等待所有子线程执行完成
使用CountDownLatch使主线程等待所有子线程执行完,再继续执行。[code="java"] public static void main(String[] args) throws InterruptedException { t1(); t2(); } private static long getTime() { return System.c...原创 2010-01-28 16:25:53 · 100 阅读 · 0 评论