日志如下:
日志如下:----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:17Message: ping成功数目:472Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:17Message: 共加载了:1085个IP。Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:27Message: ping成功数目:407Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:27Message: 共加载了:1085个IP。Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:37Message: ping成功数目:243Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:37Message: 共加载了:1085个IP。Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:47Message: ping成功数目:444Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:47Message: 共加载了:1085个IP。Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:57Message: ping成功数目:225Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:57Message: 共加载了:1085个IP。Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:04:07Message: ping成功数目:44Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:04:07Message: 共加载了:1085个IP。Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:04:17Message: ping成功数目:2Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:04:17Message: 共加载了:1085个IP。Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
-------------------------------------------------------------------------------------从日志可以看出,ping成功的IP数越来越少,明显是不正常的
日志如下:----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:17Message: ping成功数目:472Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:17Message: 共加载了:1085个IP。Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:27Message: ping成功数目:407Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:27Message: 共加载了:1085个IP。Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:37Message: ping成功数目:243Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:37Message: 共加载了:1085个IP。Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:47Message: ping成功数目:444Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:47Message: 共加载了:1085个IP。Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:57Message: ping成功数目:225Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:03:57Message: 共加载了:1085个IP。Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:04:07Message: ping成功数目:44Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:04:07Message: 共加载了:1085个IP。Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:04:17Message: ping成功数目:2Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
----------------------------------------------------------------------------------------.
----------------------------------------------------------------------------------------.
Timestamp: 2015-2-6 14:04:17Message: 共加载了:1085个IP。Severity: InformationMachine: 20140812-0954App Domain: Ping.exe
-------------------------------------------------------------------------------------从日志可以看出,ping成功的IP数越来越少,明显是不正常的
你这不论是开1000个线程还是10000个线程,都走的一样的逻辑,并没有各ping各的机器啊
在:加载数据(),这个方法里面,把数据放到:private List<string> _需要扫描的IP = new List<string>();这里面了。在ping方法里面用了removeat(0)来移除已经ping过的IP了。