A blocking problem of java thread.
Hi!
I would like to execute native thread concurrently in the Java Native Interface.
When a Java thread called a native thread to use java native interface, Java thread is blocking for processing native thread.
So, other java threads don't execute because they are blocking.
Why do these problems occur at JVM(personal basis profile:CVM)?
Regard.
Message was edited by:
peeppeep
[429 byte] By [
peeppeepa] at [2007-10-3 10:07:37]

> Hi!
> I would like to execute native thread concurrently in
> the Java Native Interface.
A thread only executes once.
> When a Java thread called a native thread to use java
> native interface, Java thread is blocking for
> processing native thread.
Then either you are doing something to block or you are not creating a native thread (and running it.)
> I mean java thead call native module of C language.
> When a java thead occupies a native module, others
> java thread don't exeucte.
> Why do these problem occur?
> Please make an explanation in detail.
In detail - you are doing something wrong.
Again either you are doing something that blocks it or you are not creating another thread. It might be that you are mis-interpreting the results because you are using standard output and you think that demonstrates how the threads run.