Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Where is taskkill located?

1018


Which one is not needed for multi-program environment?

1047


What is the default kill signal?

1068


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?

1034


Is kill ping a virus?

1011


Explain thread.sleep?

1011


Explain how to kill a particular process in windows?

998


Explain the difference between ntfs4 and ntfs5?

1169


What are the benefits of multithreaded programming?

1107


What is multi programming?

1034


if thread a,b,c have Max,Min,Normal priorty what is N0. in below set they correspond to.Something like (2,0,1)

2686


Explain difference between ntfs4 and ntfs5?

1089


How to stop a thread?

995


How to share printer through ftp(fire transfer protocol)?

1087


What are the different ways in which a thread can enter into waiting state?

1102