I agree that calling C code from Java is quite fast. But calling Java code from C is a lot slower (probably because you need to attach the thread to the JVM). The problem is that I need to do this call quite often (around 3000 times a second). So any gain in performance is welcome...
No,
What I have done is send messages to thread 1 and 2 in turn (the message rate being really slow). Thread 1 is always faster than thread 2. But sometimes both of them become even slower.
Hi,
I am trying to create two threads using the pthread library.
Both threads have the same attributes and do the same thing (they are both listening to UDP port and waiting for messages).
The issue here is that one of the thread (the one created last) is a lot slower than the other. (when I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.