Wait handles, DOT NET Programming

What are wait handles?

The Wait handles sends signals of a thread status from one thread to another thread. There are 3 kind of wait modes:-

A)WaitOne.

B)WaitAny.

C)WaitAll.

Whenever a thread wants to release a Wait handle it can call Set method. You can use Mutex (mutually exclusive) objects to avail for the given modes. Mutex objects are synchronization objects which can only be owned by a single thread at a time. Threads request ownership of the mutex object when they need exclusive access to a resource. As only one thread can own a mutex object at any time, other threads must wait for ownership of a mutex object before using the resource. The WaitOne method results a calling thread to wait for ownership of a mutex object. If a thread terminates normally while owning a mutex object, the state of the mutex object is set to be signaled & the next waiting thread gets the ownership.

Posted Date: 9/21/2012 7:57:52 AM | Location : United States







Related Discussions:- Wait handles, Assignment Help, Ask Question on Wait handles, Get Answer, Expert's Help, Wait handles Discussions

Write discussion on Wait handles
Your posts are moderated
Related Questions
ASP Developer- We are needed to hire an ASP developer for some urgent work. He needs to add a new page to an already prepared site; the page is already completed in HTML. He jus

What are resource files? The Resource files are the files which contain program resources. Many programmers think that resource files are used only for storing strings. But you

I need a Web Application UI Modernization - Preliminary Technology Assessment We are seeking to overhaul a 10-year old enterprise application, CRM-related as well as web-based t

What is Common Language Specification (CLS)? CLS is a set of essential rules, which must be followed by each .NET language to be a .NET- compliant language. It enables interope

Can you give an example of what might be best suited to place in the application_Start and Session_Start subroutines? Application Start - We can place code to initialize

What is Thread.Sleep() The Thread's execution can be paused by calling Thread.Sleep method. This Thread.Sleep() method takes an integer value which  determines how long the thr

Inventory billing and Management application in .net Project Description: Digital Inventory management Main Features         Multi user User friendly windows based s

Need a K2 Blackpearl workflows help Need a K2 Blackpearl workflows experienced developer to integrate in SharePoint 2010 and 2013. The workflow integrates with Navision 5 provid

Need code for Windows 8 and Windows Phone 8 that will http post images to a php file on web server. Project Description: I am working on two projects on both Windows 8/RT and

WP7 get data from public API with XML or JSON Project Description: Hello, I'm seeking someone who knows his way around using an API with XML or JSON output in a windows phone