Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
Other Resources:
What are wait handles
What is a mutex object ?
✍: Guest
Wait handles sends signals of a thread status from one thread to other thread. There are
three kind of wait modes :-
ã WaitOne.
ã WaitAny.
ã WaitAll.
When a thread wants to release a Wait handle it can call Set method. You can use Mutex
(mutually exclusive) objects to avail for the following modes. Mutex objects are
synchronization objects that can only be owned by a single thread at a time. Threads
request ownership of the mutex object when they require exclusive access to a resource.
Because 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 causes 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 and the next waiting thread gets ownership
2007-10-22, 4951👍, 0💬
Popular Posts:
How do you open an SSH connection to a remote box? ????
Why is it preferred to not use finalize for clean up? Problem with finalize is that garbage collecti...
How do you target a specific frame from a hyperlink? Include the name of the frame in the target att...
What is difference between Association, Aggregation and Inheritance relationships? In object oriente...
Rachel opened her math book and found that the sum of the facing pages was 245. What pages did she o...