Atomicity in Multithreading

Most of you must be knowing what we mean by Automicity in programming. To put it in simple – either a set of things happens/executes completely or not at all.So how does we achieve Automicity in a multi-threaded programming? The obvious answer is sychronization. But just using sychronization is enough? Consider the following program public… Read More Atomicity in Multithreading