Posted By:
Hans_Dollen
Posted On:
Monday, March 10, 2003 06:59 AM
Hi, I'm building an application which uses C++ Communication threads. I have 10 java threads which are of the same instance. I 've also 10 C++ threads, which send the data. The working is as follows: You call the Send method of the java object, which passes the data to the library. the library passes the data to the specific (C++) thread by calling its method Send. But for all threads the data goes through the library, and for speed and concurrency, I want to have it directly to the specific thread. Can the java object obtain something from the C++ thread so the function can be called directly? Or is there another solution... Hans (The Netherlands)
More>>
Hi,
I'm building an application which uses C++ Communication threads. I have 10 java threads which are of the same instance. I 've also 10 C++ threads, which send the data.
The working is as follows: You call the Send method of the java object, which passes the data to the library. the library
passes the data to the specific (C++) thread by calling its method Send.
But for all threads the data goes through the library, and for speed and concurrency, I want to have it directly to the specific thread.
Can the java object obtain something from the C++ thread so the function can be called directly? Or is there another solution...
Hans (The Netherlands)
For now it looks like this:
Java Threads: 1 2 3 4 5 .. 10
| | | | |
|/ /
/ /
/ /
/
C++ library(Send)|
/
/
/ /
/ / |
| | | | |
C++ Threads : 1 2 3 4 5 .. 10
<<Less