What if an uncaptured exception is thrown in the thread?

Source: Internet
Author: User

Note: This article has been deprecated. For details about the revision, see:( Http://interma.cnblogs.com/archive/2006/01/01/309325.html)

----------------------------------------

This problem suddenly occurred at night and may be one of the following two situations:
[1] The whole process (Program) All died.
[2] the thread that throws an exception will die silently without affecting other threads.

I tried it immediately. It turns out that [1] is correct, and the whole process is dead. It seems that the thread will be encapsulated later.
The exception in the method should also be taken into consideration.

This result is also applicable to other operations that indirectly exploit threads (such as methodinvoker. begininvoke ).
Some asynchronous calls ).

Finally, let's talk about an unrelated topic: Who can recommend me a good book on advanced Web Services? Not getting started
Yes.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.