I am trying to make a C program, compiled to a.out format, (on linux) run as a java thread (also on linux). Is there any easy/lazy way that I can make this program encapsulated as a java thread or should I:
- compile it to object code,
- then as a shared library,
- then simply load the library in the java program and run the main() function?
Any help would be appreciated!