Blocking receive in native C function called using JNI
1 posts in topic
Flat View  Flat View

Posted By:   Laukik_Chitnis
Posted On:   Saturday, May 24, 2003 10:04 AM

Anybody here have faced / are facing this problem:

I am calling a C function from the implementation of a native function (i.e. basically from the .c file which implements the java native fn)

In this C fn, there is a blocking receive system call.

Somehow, my problem is getting stuck here!!

The same function when called directly from a C main function works fine!!

Anybody has encountered this??

Any help would be helpful...


Re: Blocking receive in native C function called using JNI

Posted By:   Stijn_Fonck  
Posted On:   Monday, May 26, 2003 10:28 AM

I have had some problems with using a blocking receive system call in a JVM which was using Green Threads instead of native threads. First implementations of the JVM did use these 'green threads'. When I switched to a JVM which had native thread, all my problems were solved. But i guess you are using one of the latest JVM's so you shouldn't have this problem anymore. Or are you working on a system like an iSeries or somthing??
About | Sitemap | Contact