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!
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!