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
Downloadable software for a PC computer and Mac Project Description: "The software" can be sold as a downloadable purchase. I must have all copy rights to "the software" when

Computer programming Project Description: Solving some issues about traffic jam Skills required: C# Programming, Java, C++ Programming, PHP, Software Architecture

Project Description: College erp Erp key features: Panacea ERP Online Suite is server based college based management software. Gives Password facility for different use

A few changes to OutloProject Description: We require someone who is familiar with programming plug-in to work with Microsoft Outlook. Initially we just require a simple chan

What is a delegate? The Delegate is the class that can hold a reference to a method or a function. The Delegate class has a signature and it can only reference to those methods

Sorting 2 Arrays & Merging into 1 - C# Program Hello, i didn't find the correct way to implement Array in my project. I am beginner for this language.  Please suggest me some

Ask queyuyuystion #Minimum 100 words accepted#

What is DBMS? It is a collection of programs that enables user to make and maintain a database. In other words it is general-purpose software that gives the users with the proc

Want a asp.net developer with SQL server and c# Project Description: I have a project that needs some changes to it. The project is 95% complete. It is designed on asp.net, p

What is Object Relational Designer? The 0/R Designer provides a visual design surface to make LINQ to SQL entity classes and associations (relationships) that are based on obje