sql-locking

sql-Locks concept in sqlserver

I need to know about the lock concept in sqlserver why it is used ? and with any example .is there any pdf or ppt pls specify that ...