Command line options that toggle on or off a feature or attribute of the HotSpot VM have the form -XX:<+|−>FeatureName where + indicates enable the feature and − indicates disable the feature. Command line options that require a numerical value have the form
-XX:FeatureName=<n> where n is some...
CMS (-XX:+UseConcMarkSweepGC) or the concurrent mark sweep GC could have been called the mostly concurrent mark sweep GC and here's why.
These are the phases of a CMS concurrent collection.
The Concurrent Mark Sweep Collector (“CMS Collector”) of the HotSpot JVM has one primary goal: low...
Thread Starvation
Starvation describes a situation where a thread is unable to gain regular access to shared resources and is unable to make progress. This happens when shared resources are made unavailable for long periods by "greedy" threads. For example, suppose an object provides a...
Vaibhav submitted a new resource:
String , StringBuffer or StringBuilder , which one to use for Better Performance? - Difference between String , StringBuffer and StringBuilder
Read more about this resource...
String
1. String is immutable ( once created can not be changed )object. The object created as a String is stored in the Constant String Pool .
Every immutable object in Java is thread safe ,that implies
2. String is also thread safe.
3. String can not be used by two threads simultaneously.
4...
A computer is a machine in which we measure time in very small increments. When the microprocessor accesses the main memory (RAM), it does it in about 60 nanoseconds (60 billionths of a second). That's pretty fast, but it is much slower than the typical microprocessor. Microprocessors can have...