tell other thread to execute method

Discussion in 'ASP .Net' started by roni, Apr 11, 2005.

  1. roni

    roni Guest

    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 ?
     
    roni, Apr 11, 2005
    #1
    1. Advertising

  2. roni

    roni Guest

    SORRY ,WRONG NEWSGROUP :)

    "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 ?
    >
    >
    >
    >
    >
     
    roni, Apr 11, 2005
    #2
    1. Advertising

  3. 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.)

    Greetings,
    Wessel

    -----Original Message-----
    From: roni [mailto:]
    Posted At: Monday, April 11, 2005 10:10 PM
    Posted To: microsoft.public.dotnet.framework.aspnet
    Conversation: tell other thread to execute method
    Subject: tell other thread to execute method

    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 ?
     
    Wessel Troost, Apr 12, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Y2hyaXN2Yw==?=

    thread.start() does not actually execute the assigned method

    =?Utf-8?B?Y2hyaXN2Yw==?=, Apr 27, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    2,284
    davidallen
    Jun 10, 2007
  2. metfan
    Replies:
    9
    Views:
    488
    Mark Thornton
    Nov 2, 2003
  3. yogesh
    Replies:
    1
    Views:
    399
    Victor Bazarov
    Mar 14, 2007
  4. Savas Ates
    Replies:
    1
    Views:
    307
    Patrice
    Aug 17, 2004
  5. Mike A
    Replies:
    17
    Views:
    286
    Dr John Stockton
    Nov 19, 2003
Loading...

Share This Page