Monday, December 1, 2008

semaphore tell me your value

Today in morning I was little bit free from my regular work hushh..... Those sales force cases.
So I decided to write small utility which will tell me how many messages are present in the queue from another application.
Queue in this application is synchronized by using semaphore. And any point of time semaphore value Represent message count in the queue. So my thinking was if I know the name of the semaphore and required Access permission on the semaphore I can easily get the message count. But hey it is not possible to get the Current value of semaphore in .net
I found this on the forum
http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=606

An finally I have to wrap up my idea…………………………….