Is it possible to implement a safe / proper way to a custom Thread class in Java (using JNI)?
Suppose I write my own class NewThreadusing my own method start(), which run()returns execution, calls in a forked stream and returns ...
NewThread
start()
run()
Is it possible? Will the JVM complain? Is it "legal" according to the specifications? Does it break something, for example, in a memory model? Does it depend on the specific JVM?
Java Native Interface , 8.1.5.
, , . Java " " (Linux) , . " " , .
Sun JRE 1.3, , "" , , JNI , , .
. ++ lib, . JNI pthreads, Java JNI. pthreads, Java-. , , - JNI. JNI , . , ., JVM JIT , JNI, ., . Java Threads, . , .
Source: https://habr.com/ru/post/1759539/More articles:Copy IIS 6 to IIS 7.5 - iisСмутно о масштабировании Bitmap при поддержке разных резолюций в Android - android.NET convert Datetime for formatting Sort date / time pattern ("s"); - c #Creating python as system calls in java - javaкак настраивать сборку javascript API на основе Jquery и некоторые вопросы о синтаксисе, используемом в JQuery - javascriptQuery criteria with JPA 1.0 - javaBinding jQuery handlers during the event capture phase (not an event bubble) - jqueryCan I get the status of a Raid drive using PS? - windowshow to do it using linq? - c #The creator of static instances of Java? - javaAll Articles