jni Advanced topics - cheyiliu/All-in-One GitHub Wiki

Overview

Java strings versus C strings

Java arrays versus C arrays

Working with arrays

Local versus global references

Creating a global reference

Error handling

JNI's exception handling functions

JNI's exception catching functions

Multithreading in native methods

Synchronization in native methods

Using synchronized with native methods

Other synchronization techniques

Summary