Click here to Skip to main content
12,302,764 members (72,025 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

5.2K views
1 bookmarked
Posted

Video tip C#: Ensure only one instance is running

, 6 Nov 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
Your video tip is quite interesting, but overall I prefer to use Mutex classes to accomplish this task. .NET Framework provides Mutex[^] class for performing when the system needs a synchronization mechanism to ensure that only one thread at a time uses the resource. Mutex is a synchronization...
Your video tip is quite interesting, but overall I prefer to use Mutex classes to accomplish this task. .NET Framework provides Mutex[^] class for performing when the system needs a synchronization mechanism to ensure that only one thread at a time uses the resource. Mutex is a synchronization primitive that grants exclusive access to the shared resource to only one thread. In addition, A Mutex can be either local to a process or system wide.
In addition, CodeProject has many articles that focus on the same concept. Take a look below at some CodeProject search

I've also written an alternate tip (started by Charles henington) that has been focusing of using Mutex to run only one instance of class.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

RaviRanjankr
Software Developer
India India
Microsoft Student Partner | CS Student | MCTS | CP MVP | Crazy Learner | Dreamer

An Indian, who loves his country, believes in freedom, He is an enthusiast Techie and crazy learner. He is passionate about Technologies and social media. He holds bachelor degree of CS in Information Technology and now pursuing Master degree in Computer Application.

He always excited and keen Interested in learning and sharing knowledge. He loves to write blog, learn new things, listen music, taking arts and Playing Games..

He keep himself on the desk of his imagination, hanging around with some inceptions.

You may also be interested in...

Comments and Discussions

 
GeneralReason for my vote of 5 I wanted to link to the same article... Pin
johannesnestler24-Jan-12 6:02
memberjohannesnestler24-Jan-12 6:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160530.1 | Last Updated 6 Nov 2011
Article Copyright 2011 by RaviRanjankr
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid