发布时间:2016-01-08 12:10:03
1. 操作系统提供命令,可以观察多线程程序中每个线程的执行状态可以看到除了一个在run之外,其他的都处于sleep状态2. 线程的几种状态以及状态总结new:创建出来,程序还没有开始运行线程中的代码runnable: 一个新创建的线程并不自动开始运行,要执行线程,必须调用线程的start()方法。当线程对象调用start()方法即.........【阅读全文】
发布时间:2016-01-06 11:12:56
ESTABLISHED The socket has an established connection. SYN_SENT The socket is actively attempting to establish a connection. SYN_RECV A connection request has been received from the network. FIN_WAIT1 The socket is closed, and the connection is shuttin.........【阅读全文】