B
Bob Rock
Hello,
I was wondering if callback delegates, called in response to a event,
are executed in their own thread. I was suspecting the OS might spawn
a new thread and have the delegate execute in that thread but having
written a small sample application this does not seem to be happening.
I'm writing an application that will be receiving messages from a
Tibco RV messaging bus and from MSMQ and that will also have to handle
those messages (elaborate them and take appropriate actions). I was
worried that if no threads are created to execute my C# delegates in
response to an event (a new Tibco message or a new MSMQ message), in
periods of heavy messaging and message handling/elaboration, messages
might start to just gather and in the end might start to get dropped.
If callback methods (delegates) were indeed executed in a separate
thread this situation would probably never occur, not being so (or at
least it seems) I'm facing the possibility of having to write a
multithreaded application ... which I would very much like to avoid.
Any suggestion???
Bob Rock
I was wondering if callback delegates, called in response to a event,
are executed in their own thread. I was suspecting the OS might spawn
a new thread and have the delegate execute in that thread but having
written a small sample application this does not seem to be happening.
I'm writing an application that will be receiving messages from a
Tibco RV messaging bus and from MSMQ and that will also have to handle
those messages (elaborate them and take appropriate actions). I was
worried that if no threads are created to execute my C# delegates in
response to an event (a new Tibco message or a new MSMQ message), in
periods of heavy messaging and message handling/elaboration, messages
might start to just gather and in the end might start to get dropped.
If callback methods (delegates) were indeed executed in a separate
thread this situation would probably never occur, not being so (or at
least it seems) I'm facing the possibility of having to write a
multithreaded application ... which I would very much like to avoid.
Any suggestion???
Bob Rock