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

  • Home
  • SEARCH
  • 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 5928925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:21:11+00:00 2026-05-22T14:21:11+00:00

I was trying some benchmark over these two ( Software transactional memory & Atomic

  • 0

I was trying some benchmark over these two ( Software transactional memory & Atomic Operation , i guess both are not same ), though i have not done much using STM ( it seems hard to use ) ,but i successfully tried counting benchmark i.e. all the threads are incrementing a shared counter 50mn times, and noticed that atomic operation works better than STM.

So i want to know since STM are not fully developed , do they perform well in realistic situation than Atomic operation?
Has some one switched to other because of performance ? please share the information..

related journal i found on the web is Concurrent programming without locks

P.S. I am using JAVA as programming language. STM :- multi-verse. AtomicOperatinn: AtomicInteger.

  • 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-22T14:21:12+00:00Added an answer on May 22, 2026 at 2:21 pm

    Atomic operations and STMs are very different beasts. In particular, atomic operations are much “lower level” constructs – in fact, atomic operations of various kinds are generally used to implement STM. Basically:

    • An atomic operation allows you to do a concurrency-safe update of a single object. This is easy and fast, typically just a single instruction on modern hardware.
    • STM allows you do to a concurrency-safe update of multiple objects. This is complex.

    STM systems therefore need to add additional book-keeping overhead to manage the complexity of a transactional update – so if you only need to update a single object an atomic operation will nearly always be faster.

    Also, you should be aware that there is no consensus on the best way to design STM systems – it’s an active research topic and there are many tradeoffs involved. So what performs well on one STM system might not perform well on another STM system etc.

    For example: my favourite STM system at the moment is Clojure’s – it’s particularly appealing because it supports multi-version concurrency control and never impedes readers – which gives a significant performance advantage in many common scenarios.

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

Sidebar

Related Questions

I am trying to benchmark some code. I am sending a String msg over
I was having some trouble running some Ruby scripts. While trying to get these
I am trying to use MySQL benchmark to test some queries. But, I am
I'm trying to find out some matrix multiplication/inversion benchmarks online. My C++ implementation can
I’m thinking about trying some development for the iPhone, is it possible to install
I'm trying some of the ASP.NET MVC tutorials and one of them has the
Recently I was trying some practice programs in python and I came across this
I am trying some way to optimize following sql statement: exe_sql DELETE FROM tblEvent_type
I have been trying some programs in the C Language and come across to
I was trying some problems with my 2D ruby array and my LOC reduces

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.