Exception from Threads

Discussion in 'C++' started by Abhi, Oct 1, 2012.

  1. Abhi

    Abhi Guest

    Hi,

    What is the default behavior of throwing an exception from a Thread.. whether only that particular thread should terminate or the entire process??

    Thanks,
    Abhishek
     
    Abhi, Oct 1, 2012
    #1
    1. Advertising

  2. On 01.10.12 17.37, Abhi wrote:
    > What is the default behavior of throwing an exception from a Thread.. whether only that particular thread should terminate or the entire process??


    You are talking about an unhandled exception, aren't you?
    This will terminate the process.


    Marcel
     
    Marcel Müller, Oct 1, 2012
    #2
    1. Advertising

  3. Abhi

    Abhi Guest

    On Monday, October 1, 2012 10:27:11 PM UTC+5:30, Marcel Müller wrote:
    > On 01.10.12 17.37, Abhi wrote:
    >
    > > What is the default behavior of throwing an exception from a Thread.. whether only that particular thread should terminate or the entire process??

    >
    >
    >
    > You are talking about an unhandled exception, aren't you?
    >
    > This will terminate the process.
    >
    >
    >
    >
    >
    > Marcel


    Yes, it's regarding unhandled exceptions only. Thanks Marcel

    Abhishek
     
    Abhi, Oct 2, 2012
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fran Garcia

    Throws exception into Threads

    Fran Garcia, Dec 13, 2004, in forum: Java
    Replies:
    3
    Views:
    385
    John C. Bollinger
    Dec 13, 2004
  2. yoda
    Replies:
    2
    Views:
    472
    =?utf-8?Q?Bj=C3=B6rn_Lindstr=C3=B6m?=
    Aug 1, 2005
  3. threads without threads

    , Aug 27, 2004, in forum: C Programming
    Replies:
    4
    Views:
    439
    William Ahern
    Aug 27, 2004
  4. Pedro Pinto

    Java Threads - Get running threads

    Pedro Pinto, Apr 8, 2008, in forum: Java
    Replies:
    2
    Views:
    1,509
    Arne Vajhøj
    Apr 9, 2008
  5. Une bévue
    Replies:
    0
    Views:
    178
    Une bévue
    Jun 14, 2006
Loading...

Share This Page