Java native methods and threads considerations

You can use native methods to access functions that are not available in Java™. To better use Java with native methods, you need to understand these concepts.

Because native methods always run in a multithreaded process, the code that they contain must be thread safe. This places these restrictions on the languages and functions that are used for native methods:

For more information about threads on the iSeries server, see Multithreaded applications.