المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : AsyncCallback and multi threading



C# Programming
05-20-2009, 08:42 AM
Hi,
I have three AsyncCallback delegates. how can i put these three AsyncCallback in three threads, so messages corresponding to the delegate can process at any time even when the other delegate is busy.

eg: I opened three ports. Continous messages will come to these three ports. I create delegates for each ports. All delegates should be ready to recive messages at any time without making a message queue.

How cani do this using multi thread?

Thankyou
YPKI