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

Java Debugging Tools


   Listing out some of the useful Java debugging tools jinfo prints the system properties or the command line flags that were used to start the VM.   /opt/sun/jdk/java/bin/jinfo   jinfo jinfo Link: http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jinfo.html     jmap prints memory related statistics for a running VM or core file   /opt/sun/jdk/java/bin/jmap                 jmap -heap… Read More Java Debugging Tools