This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 一个简单的JAVA程序:(multi-threading)
-std(std);
2001-11-18
{1927}
(#265739@0)
-
Seems every single enumeration could be correct...
-ibuddy(阿罗);
2001-11-18
(#265747@0)
-
I mean all could come true depending on the success and delay of socket connections.
-ibuddy(阿罗);
2001-11-18
(#265755@0)
-
CLIENT和SERVER在同一机上。
-std(std);
2001-11-18
(#265756@0)
-
想想不如找个环境给RUN一下,估计还是那答案;先洗洗睡了,明儿再见。
-ibuddy(阿罗);
2001-11-18
(#265766@0)
-
我已经运行过了,只有一个答案,是2)。不知道为什么。
-std(std);
2001-11-18
(#265768@0)
-
会不会是因为URLconnection内部机制和JButton这类东西相似也是,EVEN DRIVEN的?
-std(std);
2001-11-18
(#265778@0)
-
Explanation of my thought...2) should be the most usually expected result since it occurs when there is no socket connection failures/exceptions; especially when both Client/Server are local, there'd least likely be any issues. 1) appears when connection is slow/delayed; it'll also appear if you switch the setup of delay in the servlets. 3) or 4) occurs when there is a connection failure causing exception.
This scenario would have been more distinctive if we had connected to remote URL/servlets.
-ibuddy(阿罗);
2001-11-18
{477}
(#266053@0)
-
In addition, when connecting remotely, there is another possibility of both NOT appearing, isn't there?
-ibuddy(阿罗);
2001-11-18
(#266069@0)