By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,739 Members | 2,014 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,739 IT Pros & Developers. It's quick & easy.

Threads, synchronization, etc... (unable to make it works)

P: n/a

I can't understand why this don't work (interestingly, sometimes
works, but not always).
Imagine this situation: (I'll speak about "parent" and "children" in a
different sense than object programming, ok?)
A "parent" java class that creates a new "child" class running in a
new thread, and then this java class starts a new thread for itself
and in the run method, starts a new "child" class. Both "children"
classes have a pointer to the "parent" creator, which have pointers to
both children. Let's call the children A and B.

The problem is I want children A to read a public atribute of children
B, but it doesn't work!!! (calling A.parent.B) (sometimes it does,
what makes the thing more extrange)

Could you iluminate me, please? (answers also to my email address if
posible, please)

Thanks in advance,
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.