Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
Questionasynchronous calls & threading. which is better? Pin
Li-kai Liu (Angus)28-May-02 23:05
Li-kai Liu (Angus)28-May-02 23:05 
AnswerRe: asynchronous calls & threading. which is better? Pin
Nish Nishant29-May-02 1:46
sitebuilderNish Nishant29-May-02 1:46 
AnswerRe: asynchronous calls & threading. which is better? Pin
Eric Gunnerson (msft)29-May-02 8:18
Eric Gunnerson (msft)29-May-02 8:18 
GeneralRe: asynchronous calls & threading. which is better? Pin
Nish Nishant29-May-02 8:28
sitebuilderNish Nishant29-May-02 8:28 
GeneralRe: asynchronous calls & threading. which is better? Pin
Eric Gunnerson (msft)29-May-02 8:25
Eric Gunnerson (msft)29-May-02 8:25 
GeneralRe: asynchronous calls & threading. which is better? Pin
Li-kai Liu (Angus)29-May-02 17:29
Li-kai Liu (Angus)29-May-02 17:29 
GeneralRe: asynchronous calls & threading. which is better? Pin
Not Active29-May-02 18:13
mentorNot Active29-May-02 18:13 
GeneralRe: asynchronous calls & threading. which is better? Pin
Eric Gunnerson (msft)30-May-02 6:39
Eric Gunnerson (msft)30-May-02 6:39 
If there's built-in support using completion ports (ie there are BeginXXX() and EndXXX() calls on the class), I think that's always the preferred choice, since it doesn't take any threads at all.

It is true that for small numbers of concurrent processes, it can be a lot easier to write them as separate threads, because you can write the code all at once as part of a method, while with the async case, you may have to write your code in several chunks as part of the callback routines.
GeneralRe: asynchronous calls & threading. which is better? Pin
Eric Gunnerson (msft)30-May-02 7:04
Eric Gunnerson (msft)30-May-02 7:04 
GeneralRe: asynchronous calls & threading. which is better? Pin
James T. Johnson29-May-02 18:16
James T. Johnson29-May-02 18:16 
GeneralRe: asynchronous calls & threading. which is better? Pin
Eric Gunnerson (msft)30-May-02 7:03
Eric Gunnerson (msft)30-May-02 7:03 
GeneralRe: asynchronous calls & threading. which is better? Pin
James T. Johnson30-May-02 17:06
James T. Johnson30-May-02 17:06 
Generalattribute question Pin
meihong28-May-02 22:53
meihong28-May-02 22:53 
GeneralRe: attribute question Pin
James T. Johnson29-May-02 5:11
James T. Johnson29-May-02 5:11 
GeneralRe: attribute question Pin
meihong29-May-02 21:12
meihong29-May-02 21:12 
GeneralListView Problem Pin
28-May-02 22:28
suss28-May-02 22:28 
GeneralQuick Question Pin
Nick Parker28-May-02 17:43
protectorNick Parker28-May-02 17:43 
GeneralRe: Quick Question Pin
Nish Nishant28-May-02 18:34
sitebuilderNish Nishant28-May-02 18:34 
GeneralRe: Quick Question Pin
Nick Parker28-May-02 18:57
protectorNick Parker28-May-02 18:57 
GeneralRe: Quick Question Pin
James T. Johnson28-May-02 19:09
James T. Johnson28-May-02 19:09 
GeneralUnhandledExceptionEventHandler Pin
Vanclei28-May-02 9:04
Vanclei28-May-02 9:04 
GeneralRe: UnhandledExceptionEventHandler Pin
Rama Krishna Vavilala28-May-02 11:42
Rama Krishna Vavilala28-May-02 11:42 
GeneralRe: UnhandledExceptionEventHandler Pin
James T. Johnson28-May-02 14:58
James T. Johnson28-May-02 14:58 
GeneralRe: UnhandledExceptionEventHandler Pin
Nick Parker29-May-02 2:12
protectorNick Parker29-May-02 2:12 
GeneralRe: UnhandledExceptionEventHandler Pin
Nick Parker28-May-02 17:01
protectorNick Parker28-May-02 17:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.