Please if any of you can help me in these 2 cases : Case 1: I want to know something about Thread Termination . Generally I do it by exiting from the thread function by a return statement and posting a message to the main thread that the thread has ended . I have never used Terminate thread or Exit Thread API calls . But I have seen articles telling you call call Exit Thread from "Inside a thread" and not from "Outside a thread".Can you please explain me or put some of your thoughts in this matter ? Case 2 : Can you please send me a sample project which contains any program such as this : There is a main thread which monitors two different Worker threads . Any sample application will do . So far I have done by creating a single thread within my the main thread . Any help will be great . Thanks in Advance . Please mail me at aveek_99@yahoo.com . Regards, Aveek
sudiptam
Posts
-
Thread Termination -
Thread TerminationPlease if any of you can help me in these 2 cases : Case 1: I want to know something about Thread Termination . Generally I do it by exiting from the thread function by a return statement and posting a message to the main thread that the thread has ended . I have never used Terminate thread or Exit Thread API calls . But I have seen articles telling you call call Exit Thread from "Inside a thread" and not from "Outside a thread".Can you please explain me or put some of your thoughts in this matter ? Case 2 : Can you please send me a sample project which contains any program such as this : There is a main thread which monitors two different Worker threads . Any sample application will do . So far I have done by creating a single thread within my the main thread . Any help will be great . Thanks in Advance . Please mail me at aveek_99@yahoo.com . Regards, Aveek