Re: JNI thread synchronization

Date view Thread view Subject view Author view

From: Archie Cobbs (archie@whistle.com)
Date: Sun Feb 14 1999 - 16:59:37 EST


Alexandre Oliva writes:
> This would allow other Java threads to keep running while a JNI method
> waits for some condition to return. This has the draw-back that we
> can't have more than one Thread running JNI code at once, but do we
> care?

Yes, I think limiting to one thread in JNI at a time is not
a good thing. It would be an artificial restriction that we
impose in order to hack around a problem.

Since the JNI doesn't standardize a way to globally block other
threads, we have to invent a kaffe-specific one, which we've done,
which any JNI code is required to use if this is what it wants
to do.

-Archie

___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:58:08 EDT