How can it easily be done in Java? You really shouldn't be 'destroying' threads at all since it is VERY unsafe. In fact, in Java destroying a thread is a deprecated feature. The third party class should be providing you with a method to signal the threads to finish. The fact that the threads are still running indicates that they are still doing work and therefore shouldn't be destroyed.... ::Tum
> -----Original Message----- > From: Moderated discussion of advanced .NET topics. [mailto:ADVANCED- > [EMAIL PROTECTED]] On Behalf Of pralay > Sent: Monday, 16 September 2002 6:28 p.m. > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] Accessing child thread from parent thread > > Hi all, > I have a problem in using thread. In my program I have created a object, > then I have created a thread which executes a method of that object. Now, > that method may create more than one thread. The class code of that object > is written by a third party. I don,t know what are the threads are created > in that method. By, in my program, after calling the method I want to > destroy all the threads that are created inside the method. How can I do > it > in C#? > It can be done easily in Java. So, I think we can do it C# also. But, I'm > searching for solution for last few days. Still, I can't get it. > > If anybody know the answer, plz reply. > > Regards- > Pralay > You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
