NewStringUTF() with threads

107 views Asked by At

I want to transform XML from C++ to JAVA in JNI. First I transform only on a thread cost 160ms, then I try to use 4 threads but cost the same time.

I find that using NewStringUTF() 5000 times cost 30ms only on a thread, but 100ms on 4 threads, can anyone tell me why this is?

0

There are 0 answers