Categories
JavaTips and Tutorials → Development

Mash that trash -- Incremental compaction in the IBM JDK Garbage Collector

This article discusses incremental compaction, a new feature in the memory management component of IBM JDK 1.4.0. Incremental compaction is a way of spreading compaction work across different garbage collection cycles, thereby reducing pause times. T...
  • Platforms
    • Linux
  • Licenses
    • Freeware
DETAILS

Diagnosing Java code: The case for static types

Love or hate it, static type checking can make code more robust. Programming languages are moving away from static type checking, but it is too powerful a debug resource to abandon. Static type checking can be one of the key weapons in a powerful ars...
  • Platforms
    • Linux
  • Licenses
    • Freeware
DETAILS

Java programming code page considerations

Every Java programmer should be aware of the problem of code pages vs. Java Unicode. This article describes some pitfalls to avoid with code page and Unicode conversions and provides example fixes for the problems. Armed with this informaion, you sho...
  • Platforms
    • Linux
  • Licenses
    • Freeware
DETAILS

Weighing in on Java native compilation

Learn the pros and cons of generating native code from Java source. This article includes the basics of code compilation, including a brief overview of why many developers are employing Java native compilers for their applications.
  • Platforms
    • Linux
  • Licenses
    • Freeware
DETAILS

Concurrent programming in the Java language

One of the most important features of the Java language is support for multithreaded (also called concurrent) programming. This tutorial introduces you to the proper use of multiple threads in a Java program, using sample programs to illustrate these...
  • Platforms
    • Linux
  • Licenses
    • Freeware
DETAILS

Exploiting ThreadLocal to enhance scalability

The ThreadLocal class appeared with little fanfare in version 1.2 of the Java platform. While support for thread-local variables has long been a part of many threading facilities, such as the Posix pthreads facility, the initial design of the Java Th...
  • Platforms
    • Linux
  • Licenses
    • Freeware
DETAILS

Working with preferences: the Preferences API Specification

The addition of the java.util.prefs package to Java 1.4 (through JSR 10) lets you manipulate user preference data and configuration data by providing you with access to an implementation-specific registry (for example, the Windows Registry on Windows...
  • Platforms
    • Linux
  • Licenses
    • Freeware
DETAILS

Threading lightly : Reducing contention

While it''s common to hear that synchronized method calls can be 50 times as expensive as unsynchronized method calls, these numbers can actually be quite misleading. With each successive JVM version, overall performance has improved, and the co...
  • Platforms
    • Linux
  • Licenses
    • Freeware
DETAILS

Diagnosing Java Code : The Orphaned Thread bug pattern

In multithreaded code, it is often common to use a single, master thread that drives the actions the other threads take. This master thread may send messages, often by placing them on a queue, that are then processed by the other threads. But if the ...
  • Platforms
    • Linux
  • Licenses
    • Freeware
DETAILS

Diagnosing Java Code: The Impostor Type bug pattern

When special tags in fields are used to distinguish between types of objects, errors are possible in which a tag mislabels the associated data -- a bug pattern known as the Impostor Type. This article examines the symptoms and causes of this bug, def...
  • Platforms
    • Linux
  • Licenses
    • Freeware
DETAILS

Page:
©2019 A--9.com