积极答复者
为何控制台程序window server 2016中会忽然没响应

问题
答案
-
Hi rickyyoung,按照你的描述,打回车之后执行。这个应该是整个控制台接收到Console.ReadLine之后结束。 在Console.ReadLine 之前你开启了线程来执行Socket 通信。 你说的不明原因停住,我们也不太清楚具体为什么。所以我还是建议你多测试。增加每一步的测试记录日志。 并排除可能出现的竞争资源导致死锁的问题。
Best Regards,Yohann Lu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已标记为答案 rickyyoung 2017年1月11日 10:03
全部回复
-
Hi rickyyoung,按照你的描述,打回车之后执行。这个应该是整个控制台接收到Console.ReadLine之后结束。 在Console.ReadLine 之前你开启了线程来执行Socket 通信。 你说的不明原因停住,我们也不太清楚具体为什么。所以我还是建议你多测试。增加每一步的测试记录日志。 并排除可能出现的竞争资源导致死锁的问题。
Best Regards,Yohann Lu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已标记为答案 rickyyoung 2017年1月11日 10:03