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. Advertisements

  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. Advertisements

  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. Advertisements

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:
    435
    John C. Bollinger
    Dec 13, 2004
  2. Zunbeltz Izaola

    threads and exception in wxPython

    Zunbeltz Izaola, Nov 2, 2004, in forum: Python
    Replies:
    24
    Views:
    1,012
    Peter Hansen
    Nov 4, 2004
  3. yoda
    Replies:
    2
    Views:
    659
    =?utf-8?Q?Bj=C3=B6rn_Lindstr=C3=B6m?=
    Aug 1, 2005
  4. threads without threads

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

    Java Threads - Get running threads

    Pedro Pinto, Apr 8, 2008, in forum: Java
    Replies:
    2
    Views:
    1,680
    Arne Vajhøj
    Apr 9, 2008
  6. Brendon Costa
    Replies:
    7
    Views:
    1,355
    Rhamphoryncus
    Jun 20, 2008
  7. Icarus
    Replies:
    5
    Views:
    567
    Icarus
    Feb 18, 2009
  8. Une bévue
    Replies:
    0
    Views:
    313
    Une bévue
    Jun 14, 2006
Loading...