The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: exception vs. multiple-thread
hans
Newbie
Rank: 1



UID 171
Digest Posts 0
Credits 0
Posts 43
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 20, 2007 10:38 AM  Profile | P.M. 
exception vs. multiple-thread



exception vs. multiple-thread



some questions regarding exception vs. multiple-thread :

1. there are one main thread and one child thread. the child thread may throw one exception but it doesn't try to catch any exception. in the main thread, it tries to catch excpetion. can main thread catch the exception that is thrown from child thread?

2. if child tread may throw exception, and neither main tread nor child tread will catch exception. what is the consequence if the child tread really throws one exception. which tread is crash? or both crash?



anyone can help? thanks.


Top
 

 

All times are GMT, the time now is Mar 21, 2010 12:03 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.004525 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP