Re: Semaphores and .NET
- From: "William Stacey [MVP]" <staceyw@xxxxxxxx>
- Date: Mon, 22 Aug 2005 22:04:16 -0400
I did a managed semaphore in c# and has been on the CodeProject for some
time:
http://www.codeproject.com/csharp/DijkstraCountingSemaphore.asp
You should be able to modify for your needs.
--
William Stacey [MVP]
"jinksk" <jinksk@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:905158FC-E844-47CA-A263-08179F5BB9C0@xxxxxxxxxxxxxxxx
>I have a C# application and a VB6 application that need to share a dialup
> connection to the internet. Don't ask why, this is one of those corporate
> "do
> or die" things.
>
> The only way I can see to do this is by using the combination of a MUTEX
> to
> create a Cross-application Singleton for the Dialing operation and a Named
> Semphore that can keep a count of how many processes are currently sharing
> the connection from the client's workstation into our corporate VPN
> extranet.
> I am trying to find an example of how to manage semaphores in C# in a
> class.
> I will have to translate the same into the VB6 for the legacy app.
>
> Using .NET 2.0 is not an option, they won't let me use a BETA. Neither is
> remoting. I have to make the access sharable between executables modules.
> Does any one have any ideas.
> --
> Kenneth A. Jinks, Jr.
> Lead Project Software Engineer
> LabCorp CPG - LCM Development
> Huntsville, AL
>
.
- Follow-Ups:
- Re: Semaphores and .NET
- From: jinksk
- Re: Semaphores and .NET
- From: Lebesgue
- Re: Semaphores and .NET
- References:
- Semaphores and .NET
- From: jinksk
- Semaphores and .NET
- Prev by Date: Re: newline character
- Next by Date: Re: newline character
- Previous by thread: Re: Semaphores and .NET
- Next by thread: Re: Semaphores and .NET
- Index(es):
Loading