Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6080079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:01:16+00:00 2026-05-23T11:01:16+00:00

In the common DBMS, the read/write operation has been implemented the Lock-system implicitly so

  • 0

In the common DBMS, the read/write operation has been implemented the Lock-system implicitly so that programmer does not necessarily handle this complex locking mechanism. But why when we write code on the application level, it is common that we still need to use some lock/synchronized function when doing write.

e.g.

public synchronized writetoDBMS(){
SQL statement writing to DBMS }

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:01:16+00:00Added an answer on May 23, 2026 at 11:01 am

    @Kit Ho: synchronized keyword before method name just ensures only single thread is executing at a time the enclosed code and also other synchronized methods of same object…so other operations can be read or write operation.
    Now why do you see synchronized keyword on some DB related methods?
    well for concurrent operations to be handled by Database, you rely isolation level.Read
    Database Isolation

    Now let us say your DB isolation level is READ UNCOMMITTED and you have methods doing read and write to same table, then u definitely want to synchronize those methods.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A common pattern in C++ is to create a class that wraps a lock
Common scenario: I have a library that uses other libraries. For example, a math
A common task in programs I've been working on lately is modifying a text
A common argument against using .NET for high volume, transactional enterprise systems is that
Stonebraker's paper ( Operating System Support for Database Management ) explains that, the overhead
Common Lisp HyperSpec says that require and ****modules**** are deprecated. But I still see
Many common filesystems do not offer atomic operations, yet writing files in an atomic
The Common Lisp HyperSpec says in the funcall entry that (funcall function arg1 arg2
By common I don't mean utility, I mean a header that holds enums that
A common occurrence I have with one particular project is that it requires the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.