Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Native events  RSS feed

Guy Fawkes
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to implement an embedded Java program that interacts and gets async events from native code. I need multiple Java threads, so my understanding is that I should not block inside a native function.
I understand I can get the events by polling from a Java thread, but that is too inefficient for the application I am working on.
Question then is, could anyone suggest a good way to get the async events from the native 'C' code into the Java KVM ? If possible, pointing me to sample 'C' and Java code that does it would be fantastic.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!