Java program architecture (Threads...) : Advices needed

  • Thread starter nassim.bouayad-agha
  • Start date
N

nassim.bouayad-agha

Hello,
I am currently developping a huge program that uses Java and Visual
C++.
Basically, the java program is a front(extends JFrame) end that allows
jar plugins loading.The java program is using a Multithreaded MFC
Dll,via JNI (Native methods,callbacks).
I am currently thinking about the program's structure that doesn't
seems to be efficient enough.
Here are my questions :
The java frontend can receive callbacks from the native DLL at any
time,and as it have to handle the user Input and the plugin,is it
better to use a thread for each entity?One for the front end, one for
the loaded plugin, one the synchronization with the native DLL?
Is it recommended to use Custom Events for inter-threads communication
in java or?
Thank you for your help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top