You might be thinking of delegates, BeginInvoke, EndInvoke, and
IASyncResult being the keywords. There's no explicit thread management
you have to do, just BeginInvoke on an asynchronous method and EndInvoke
when you want to wait for it to complete. 

Phil Wilson 

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Knowlton,
Gerald F.
Sent: Wednesday, October 24, 2007 8:11 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] Working with threads in VS2005

Greetings:

       I'm looking for a way for a thread to invoke a method in an
application when the thread has fully completed the tasks assigned to
it. Seems to me I sorta remember a way it was done in VS2005 using
"delgates" ???

So to be clear, I do not want to have a call to another method within a
method that is in the thread, rather when Method X has exited, then the
thread does "clean up or signaling work " in Method Y.

The reason for this request is because I have an application that has
multiple threads running which sometime thread X finishes before thread
Y or just the opposite and thread Z shouldn't start until both X and Y
are done.

Thanks for any assistance you can provide.


Best regards,


Jerry Knowlton

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to