posted 17 years ago
hi sirish,
Basically locking an object comes during synchronization areas.
synchronization means only one can access anything.
For example, say myself and u have the same debit card ie having same number on credit card ( we have two copies of credit card with same number).
Suppose i insert card into ATM, at that particular point of time, u are not allowed to access the database (i,e you cant touch data unless one card has finished its transcation) means when one transaction is accessing data, ( indirectly object is locked), u cant allow other transaction to access data.
Have a nice day.
Good Guy