yffaria said:
The context is: I have one class (not thread class), and in this class
I have two class extended by thread. In one of the thread class, I have
on method that I open one file and write something, and this is do by
the other class thread. I need do this by one thread. So when I
initialize my other thread all happen normaly, but after when I start
the thread, nothing happen.
Are you understand me?
It's definately a challenge for me. You say that you have a class extended
by Thread, which means (to me, at least) that you have somehow made the
system java.lang.Thread class extend (subclass) your class. This is
extremely unlikely. I am more likely to believe there is a language problem
and that you really have a class that contains two objects whose classes
extend (are subclasses of) Thread. One thread opens a file and writes.
Overally, I'm still really not sure what you're asking. My questions to you
(to help you better) are:
Do you mean extends and not extended by?
Do you really need to extend Thread at all instead of supplying a Runnable?
Why do you think you need to have a thread that starts other threads?
What do you really want these threads to do?
Cheers,
Matt Humphrey (e-mail address removed)
http://www.iviz.com/