Ian ,

I Agree on most of your points except this one .

>> In this case I may be wrong as the initialization cost of your class may
>> be quite high . It may be more efficient to intialize it once and send
the
>> 50 messages in a loop.
>
>I suspect the class initialization cost will be low compared to the cost of
> creating a thread.

His class intialization is doing a network login - the cost of creating a
thread is no where near that high - some code Ive got creates a thread and
gets a DataSet from a middleTier and takes about 50ms.

Ben

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to