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
Web Based Inventory Management System Project Description: I need a build in software which has the subsequent features, if anybody has ready to use web based application, pl

What is a fish bone diagram? Dr. Kaoru Ishikawa discovered the fishbone diagram. Therefore, it can be also known as Ishikawa diagram. The Fishbone diagram is an analysis dia

Can you give a practical implementation of FAÇADE patterns? The Façade pattern sits on the top of lot of the subsystems & makes access easy to interfaces of these subsystems. T

Project Description: I need complete school management software, where user will get four module for their enquiry, 1> Student management 2> Staff complete payrole system

write a program in C# to perform arithmetic operation

What is the DataContext class and how is it related to LINQ? After you add a LINQ to SQL Classes item to a project and open the O/R Designer, the empty design surface shows an

How can you increase SQL performance? 1)Keep your indexes as narrow as possible. This reduces the size of the index and decrease the number of reads needed to read the index.

What is ReaderWriter Locks? You may want to lock the resource only whenever data is being written and permit multiple clients to parallel read data when data is not being updat


What is a node? A network can have of two or more computers directly linked by some physical medium such as coaxial cable or optical fiber. Such a physical medium is known as L