Which one you will use to implement critical section?
Answer Posted / nirmalraj
Critical Section comes in single process environment they
didn't share accross process boundary.
In C if you wish to implement criticalsection you have to
use windows datastructure CRITICAL_SECTION and create a
object to access its members.
Initialize it
InitializeCriticalSection(&cs);
------------
-----------
function to call();
------------
DeleteCriticalSection(&cs);
.
.
call()
{
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Where is taskkill located?
Which one is not needed for multi-program environment?
What is the default kill signal?
In window xp which are the threads. Actually I wanna know if ms word is a process which are the threads? Is spell check is a thread?
Is kill ping a virus?
Explain thread.sleep?
Explain how to kill a particular process in windows?
Explain the difference between ntfs4 and ntfs5?
What are the benefits of multithreaded programming?
What is multi programming?
if thread a,b,c have Max,Min,Normal priorty what is N0. in below set they correspond to.Something like (2,0,1)
Explain difference between ntfs4 and ntfs5?
How to stop a thread?
How to share printer through ftp(fire transfer protocol)?
What are the different ways in which a thread can enter into waiting state?