Java performance Issues (IV) - Hardware interfacing

31 January 2008

When it comes to lower level programming C or even C++ is sometimes considered better than Java. When Java was designed, the main focus was on portability and security, which was lagging in the popular languages such as C, C++ etc. As in Java main emphasis is on portability and security, program can not directly access hardware or a peripheral device such as a scanner, digital camera, audio recorder, video capture, or virtually any hardware that requires direct memory space control. This obviously makes programming which requires these devices difficult in Java. However, it is not impossible to communicate and include programming for these devices in Java.

Interfacing with native code

Sometimes a software application can not be written and developed entirely in Java, for example when Java’s default class library does not support certain operating system and/or hardware specific features. In such a situation, the Java Native Interface (JNI) is very useful.

However, using Java Native Interface (JNI) is not full proof and has some limitations of its own. These limitations are machine dependency, potential deadlock situations, memory allocation leaks, and inconsistent or not so reilable application performance. Further as different languages or programming techniques are used code becomes complex and difficult to maintain. However, due to the very nature of problem (operating system and/or hardware, programming languages) all these issues are common with any other programming language as well.

del.icio.us:Java performance Issues (IV) - Hardware interfacing  digg:Java performance Issues (IV) - Hardware interfacing  spurl:Java performance Issues (IV) - Hardware interfacing  wists:Java performance Issues (IV) - Hardware interfacing  simpy:Java performance Issues (IV) - Hardware interfacing  newsvine:Java performance Issues (IV) - Hardware interfacing  blinklist:Java performance Issues (IV) - Hardware interfacing  furl:Java performance Issues (IV) - Hardware interfacing  reddit:Java performance Issues (IV) - Hardware interfacing  fark:Java performance Issues (IV) - Hardware interfacing  blogmarks:Java performance Issues (IV) - Hardware interfacing  Y!:Java performance Issues (IV) - Hardware interfacing  smarking:Java performance Issues (IV) - Hardware interfacing  magnolia:Java performance Issues (IV) - Hardware interfacing  segnalo:Java performance Issues (IV) - Hardware interfacing  gifttagging:Java performance Issues (IV) - Hardware interfacing

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: Java performance Issues (IV) - Hardware interfacing

Leave a Reply