I haven't worked with Java threads in several years so I have a very basic question about multithreading. I'm writing a java package that will be called by another language (matlab). Matlab is able to instantiate a Java class and run java code.
I want to be able to:
- Start multiple threads
- Get a list of all running threads
- Stop a given thread by name
- Stop all threads
I used the Thread
class in the past, but are there any easier/more complete packages available now? Can anyone provide a simple demo or point me to a tutorial on the subject?