Prashant Chandra wrote:
>
> You are right. It doesn't happen with green threads.
> But the code in invoke.c does not explicitly create any
> native threads.
>
> I should read up on the pthreads implementation on Linux.
> Are these pthreads processes in anyway different from normal
> processes (
You are right. It doesn't happen with green threads.
But the code in invoke.c does not explicitly create any
native threads.
I should read up on the pthreads implementation on Linux.
Are these pthreads processes in anyway different from normal
processes (i.e context switch is inexpensive)?
On Linux, threads take up their own entries in the process table. Those
"processes" are threads.
Nathan
Prashant Chandra wrote:
>
> I had posted this a few days ago, but somehow it
> didn't
> appear on the mailing list. I am trying again.
>
> I tried compiling and running the invoke.c exampl
I had posted this a few days ago, but somehow it
didn't
appear on the mailing list. I am trying again.
I tried compiling and running the invoke.c example
in the Invocation API tutorial, with JDK 1.1.7v3 and
native threads. Everything went fine.
I found that after the call to CreateJavaVM, thre