|
-
May 13th, 2002, 11:26 PM
#1
Asyncrhonus Socket Calls
In C# I am writing some socket programs and using the Async callback methods. I can't seem to find any definitive answer to this. Do the callback methods always execute on a different thread from the one that setup the callbacks? Thanks
Jared Parsons
Jared
-
May 14th, 2002, 01:10 AM
#2
Re: Asyncrhonus Socket Calls
I would assume so, considering that the thread that setup the callback has little control of the thread that performs the callback, and in contrast the thread performing the callback has no control of the thread that requested the callback, or what type of state that thread may be in.
Regards
-
May 14th, 2002, 02:03 AM
#3
Re: Asyncrhonus Socket Calls
In my previous post, I guess what I am trying to say is that a callback in the traditional sense is always executed in the context of the calling thread, all in all, it is just another function call, nothing special.
-
May 14th, 2002, 07:58 AM
#4
Re: Asyncrhonus Socket Calls
I would think it would happen that way. The documentation was a little ambiguous in this sense. The only other way that I could think it would happenw ould be similar to a Unix Interrupt.
Jared Parsons
Jared
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|