At 11:59 11 Nov 1999 -0600, [EMAIL PROTECTED] wrote:

> This sounds to me like Java and C/C++ native code can talk to each other
> only if they (java and native code) are in the same thread.  Is it right, or
> in the same process?
> 
> Suppose C/C++ native code creates another thread within the shared lib, can
> the newly-created thread interact with (call back to) java code?  The
> newly-created thread should be in the same process as its parent thread and
> java code, right?

The key is to be using 'native' threads and not 'green' threads in your
JVM.  Then each thread will be a real thread compatible with both Java and
C++.  Otherwise you can run into funky problems.

Paul


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to