Visual Studio 2010!

Read now >

View Now
DevSource RSS FEEDS
XML Want an easy way to keep up with breaking tech news? And the Get DevSource headlines delivered to your desktop with RSS.
ADVERTISEMENT
ADVERTISEMENT

 

DevSource.com: Your Source for Visual Studio on Facebook
ADVERTISEMENT
Waitable Timers in .NET with C#
By Jim Mischel

Rate This Article: Add This Article To:

Waitable Timers in .NET with C# - Parting Thoughts
( Page 5 of 5 )

Parting Thoughts

WaitableTimer is a very useful synchronization object to have. Although not used nearly as often as EventHandle and Mutexe--or even Semaphore--when you need a waitable timer, you really need one. As I said, there are ways to simulate most of the waitable timer functionality using a regular timer object and an EventHandle, although doing so carries some very tight restrictions. However, WaitableTimer has one feature--the ability to "wake up" your computer--that doesn't seem to be possible any other way. Combined with its other features, that makes WaitableTimer an essential synchronization object. I wonder why it was never included as part of the .NET Framework.

Source Code Availability

A Visual Studio 2008 project, including full source for the WaitableTimer class and supporting classes, and some test programs is available for download from my Web site at http://www.mischel.com/pubs/waitabletimer.zip.



 
 
>>> More Microsoft Languages Articles          >>> More By Jim Mischel