1 message in net.java.dev.jna.usersthreads and JNA
FromSent OnAttachments
Glick, Gene (GE Indust, Security)Oct 17, 2007 7:17 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:threads and JNAActions...
From:Glick, Gene (GE Indust, Security) (gene@ge.com)
Date:Oct 17, 2007 7:17:11 am
List:net.java.dev.jna.users

I'm just wondering about threads and JNA. My application uses java to receive
streaming data over UDP, then pass the data to ffmpeg video decoder. There are
2 threads running in a producer/consumer model and they run at the same priority
level. One thread simply gets the packets in, and buffers them up (producer).
The other thread does a bunch of stuff, including calling ffmpeg decoder (the
consumer thread). FFMPEG is setup and called with JNA. All this is working so
far. But, the producer thread seems to be missing some packets periodically.
If the ffmpeg stuff is turned off, temporarily, far fewer packets get missed.
Oh, the FFMEG decode software consumes a lot of CPU time.

Any idea if this is a jna issue? Maybe it's just java? Or maybe my threading
model is wrong?

regards,

gene