Thanks for the replies.
Creating multiple "spinning/waiting" threads doesn't sound very appealing.
Microsoft have a neat solution with their Parallel Extensions Framework
(PFX) that's currently in CTP (a part of .NET 4.0 according to the VS2010
CTP).
Parallel.ForEach(acceptor.getSessions(), session =>
{
Session.SendToTarget(message,session);
}
I haven't measured the speed increase (if any) but I hope MS make this idea
work for us .NET programmers.
nisbus
|