Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is the difference between locking and Non-locking in Programming languages ?

user-image
Question ajoutée par Mohamed Hedar , Digital Ads Manager , Growl Media
Date de publication: 2015/02/12
Mohd shahnawaz khan
par Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution

first of all ,we see why and where we use locking and unlocking,

locking came into picture when we are dealing with threads(small part of the program

or light weight process),locking means taking control over the object and to ensure 

consistency of shared data. In locking mode only one thread can work on that particular 

object.locking also causes deadlock condition . Performance of application is slow.

 

In Non-locking multiple thread can access the object at the same time.

Performance is high as CPU is not idle.

More Questions Like This