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...

Method1()
{

int a=0, b=0, c=0;
Monitor.Enter(this)
c = 12;
b = 3;
a = c/b
Moniter.Exit(this)
}

Method1()
{

int a=0, b=0, c=0;
c = 12;
b = 3;
lock(this){
a = c/b
}

}

Choose correct answer.

a. Upon completion, Method1 and Method2 release the lock
b. Upon Comletion, Method1 release the lcok and Method2 not.
c. Upon Completion, Method2 release the lock and Method1
not.
d. Upon Completion, neither Method1 or Method to release
the lock.

Answer Posted / gautam

b

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why data types are important?

898


What are the advantages of using partial classes?

951


What is the difference between constants and read-only?

860


How to find Percentage, name ,College from a resume or document ? How to export these values to other page in C#?

873


What is a trace and asset? Explain some differences?

1188


What is the difference between ref & out parameters in c#?

881


Tell me the difference between value passing and address passing?

1114


Is type nullable c#?

883


What is sqladapter c#?

899


What is the difference between static and constant variables?

987


What is the usage of OLE?

954


What is a partial class. Give an example?

914


How do I open the console window?

967


What is unrecognized escape sequence in c#?

878


Can we have static indexer in c#?

851