I am new to java. My question is what is thread wrapper class for a class. For example I have written an class ‘someClass’. Now if I need to break my program in multiple threads, then how to write thread wrapper class for this class. (I know what threads are and how to break a program in multiple threads and run, but I am not understanding meaning of thread wrapper class.)
thankx
I am new to java. My question is what is thread wrapper class for
Share
Your class needs to extend the Runnable interface. Then you’d start it like this: