This post originated from an RSS feed registered with Java Buzz
by News Manager.
Original Post: June 2009 New Java Performance Tips
Feed Title: JavaPerformanceTuning.com
Feed URL: http://www.javaperformancetuning.com/newsletters.rss
Feed Description: JavaPerformanceTuning.com lists all the information and resources available for Java performance tuning
The latest Java performance tips from around the web, such as "Semaphore objects allow you to specify exactly how many threads can concurrently run a piece of code, e.g. to allow at most 2 threads to concurrently run methodX(), you could specify all calls to methodX() wrapped with Semaphore.acquire() and Semaphore.release() calls, where the Semaphore is defined with 2 permits, e.g. new Semaphore(2, true)."