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
I want to develop SMS application with auto reply based on the content of the message using gsm modem. eg.Student results checking using cell phone via sms. How do i do this?

Project Description: I have a site that's previously fully developed, and need to fix some small problems (Text editor posting error, and a Server error caused by some Nhibernat

Explain the difference between XML and HTML. XML explains data while HTML describes how the data should be displayed. Thus, HTML is about displaying information while XML is ab


What is "Common Language Runtime" (CLR)?  CLR is .NET equivalent of Java Virtual Machine (JVM). It is the runtime that changes a MSIL code into the host machine language code,

Different types of remote object creation mode in .NET There are 2 different ways in which the object can be created using Remoting :- 1)SAO (Server Activated Objects) also

We previously use Site content filtering inside Netkiosk But at present this blocks sites. or keywords We now also require a Whitelist that allows. 1) An entire domain www

What do you understand by SOAP encoding? The Serialization of the types, such as integers and strings, inside a SOAP message is known as encoding. The SOAP objects use XML elem

What are Value types and Reference types The Value types directly contain their data which are either allocated on the stack or allocated in-  Line in a  structure. The Refe

What is the use of DataView? User-defined view of a table is contained in a DataView. A complete table or a small section of table depending on some criteria can be shown by an