Advertisements

"roni" <> wrote in message
news:d3ehll$lss$...
> hi.
> i have applcation in net.
> in that application i have 3 threads.
>
> 1- main thread with message loop and form
> 2. thread with message loop and form
> 3. thread with message loop and form
>
>
> now ,i want thread 2 to tell thread 3 to exceute method in async way :
>
> how can i do that ?
>
> if i will use the asnyc call through NET , that thread that will exceute
the
> method will be
> thread from thread pool.
>
> any ideas ?
>
>
>
>
>

Advertisements

The easiest way would be an asynchronous message call. Create a delegate
that points to the method you want to invoke asynchronously, and call
BeginInvoke() on the delegate. This will return control immediately
while the asynchronous call executes in another thread (not necessarily
thread 1, 2 or 3 tho.)

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!