the performance issue for JNI and socket loopback
0 posts in topic
Flat View  Flat View

Posted By:   Shaofeng_Yang
Posted On:   Wednesday, February 12, 2003 12:34 PM

We need to let a C program communicate with Java program.
As I know, it has two options: One is JNI and the other is TCP /IP communication.
My question is: from performance point of view, which one is better.
1: A C program calls a big java program using JNI.
2: The Java program creates a service for accepting the query from clients implemented by C. Actually, it is a loopback network. The service and clients run on a same localhost. the clients open the socket with the ip address:

3: For loopback network, how fast it can perform compared to Gigabit/Terabit

Thanks in advance

About | Sitemap | Contact