MessageQueue.BeginPeek and ThreadPool
"Rolls, Robert" <[email protected]> Thu, 20 Jun 2002 10:07:54 +1000
| Newsgroups | gmane.comp.windows.devel.dotnet.general |
|---|---|
| Message-ID | <[email protected]> |
I've set a up asynchronous callback to be fired when a message arrives at a certain queue - from my understanding how do I actually remove it if I want to actually process it? What happens if two applications are peeking the same queue? do they both see the same message? In the good'old days I used to limit the amount of threads running i.e processing the messages received from the queue by using a semaphore - I saw a message posted way back that said that Semaphore would be in beta2 anybody know what happened? What I'm going to do now is determine how many free threads are available in the pool and if there are less than 5 don't bother processing the message? Regards Robert. **********************************************************************" This correspondence is for the named person's use only. It may contain confidential or legally privileged information or both. " No confidentiality or privilege is waived or lost by any " mistransmission. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Vodafone. This email has been checked for viruses. ********************************************************************************************** You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.