[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

method is thread-safe but not atomic.

Posted on 2014-03-26
1
Medium Priority
?
311 Views
Last Modified: 2014-04-24
Hi,

What is the meaning of 'method is thread-safe, but not atomic.' I have not understood what it exactly means.
please advise
Any links resources ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
1 Comment
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 total points
ID: 39957054
Thread safe means that no two threads can be in the "critical section" at the same exact time. "Atomic" means that all of the operations succeed or none of them succeed--there is no partial success. For me, "method is thread-safe, but not atomic" would mean that you have a "critical section" where no two threads can simultaneously enter, but perhaps it's possible that an exception is raised, and that a proper rollback is not performed in the catch block.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
A solution for Fortify Path Manipulation.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month17 days, 21 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question