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. Advertisements

  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. Advertisements

  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. Advertisements

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,465
    davidallen
    Jun 10, 2007
  2. Peter Blatt
    Replies:
    0
    Views:
    399
    Peter Blatt
    Aug 11, 2003
  3. metfan
    Replies:
    9
    Views:
    746
    Mark Thornton
    Nov 2, 2003
  4. bearsprite
    Replies:
    3
    Views:
    694
    Dennis Lee Bieber
    Dec 12, 2006
  5. QQ
    Replies:
    6
    Views:
    565
    Roedy Green
    Mar 28, 2008
  6. Savas Ates
    Replies:
    1
    Views:
    459
    Patrice
    Aug 17, 2004
  7. Xeno Campanoli
    Replies:
    3
    Views:
    114
    Gary Wright
    Jun 11, 2009
  8. Zheng Li
    Replies:
    3
    Views:
    239
    Nathan Rice
    Feb 15, 2012
Loading...