Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am writing an article about both programming language locking primitives (which are really wrappers for OS primitives) and database locking primitives. Are there any short wide-spread titles for these two types of locking? For example, "code locking" and "database locking"?

share|improve this question
up vote 2 down vote accepted

It is commonly referred to as locking; regardless of the implementation.

The database does have variations of locking in the form of pessimistic and optimistic locking; however the proper verbiage is still locking.

You can talk about which layer in an N tier architecture the locking is taking place at but there is no naming formality other then the formalities that exist within a typical N tier discussion.

An example would be that all locking at an application level will take place at the data tier whereas any client specific threading issues will be addressed at the client tier.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.