as far as i understand, u may be looking for Executor class. check out for
Executor in JavaDocs
Regards,
Adi Srikanth.
Personal Pages: http://bit.ly/adisrikanth
On Thu, Oct 18, 2012 at 6:54 PM, Shruti Gupta fundooshr...@gmail.comwrote:
if u are extending Thread class, then u can simply make
How can i create a new instance for every thread in java? Instead of
reusing the same existing instance
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this
if u are extending Thread class, then u can simply make a new object of the
class(that is extending thread) and you will get new instance for every
thread.
if u are implementing an interface, then when u create a thread object by
Thread t=new Thread(object); and pass a different object