I need to synchronize a structure to be populated with native code (C code), and the same will be read from Java code with JNI. I need to sync them. Is there any method I should use, something like IPC mechanisms?
You can use JNIEnv to get a monitor for a Java object, and to do this, use regular Java synchronization for synchronization. Read more about recording and monitor output here.
Source: https://habr.com/ru/post/1791611/More articles:How to adjust font size using Cufon? - cufonjQuery Hotkeys - enable combinations, while INSIDE input / textarea - jqueryHow to pass an object value for type values? - castingIs there a problem with IO.Compression? - .netdisplay icon to the left of text - cssHow to copy the contents of the resource folder to the SD card? - androidResolving JAR dependencies from within / usr / share / java - javaОшибка локального отчета SSRS - ошибка "Произошла ошибка во время обработки отчета" - reporting-servicesPython: Preventing if stairs - pythonMySql exception for many connections - mysqlAll Articles