× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 09/20/2002 at 01:01:44 PM, java400-l-admin@midrange.com wrote:
Fred could you explain the object locking that goes on in the
implementation
code in java?

When one object is copied to another is the from object locked?  Reason
being that if thread #1 destroys the object while it is being copied by
thread #2 unpredictable results may occur.
--- end of excerpt ---

Nope. I can't really explain this, not having done no implementation nor
exploration of this part
of a JVM.

However, I would ask what you mean by "thread #1 destroys the object"?

If you mean "finalize() and garbage collect", then my expectation would be
that thread #1 is the garbage
collector and that this wouldn't happen until there are no references to
the object remaining in the application.

If there are no references remaining, then no thread can be accessing it to
copy it.
I only assume that there are 'sufficient' locking or other protocols to
ensure this but can't explain them.
Sorry.




"The stuff we call "software" is not like anything that human society
  is used to thinking about. Software is something like a machine, and
  something like mathematics, and something like language, and
  something like thought, and art, and information...
  but software is not in fact any of those other things."
Bruce Sterling - The Hacker Crackdown

Fred A. Kulack - IBM eServer iSeries - Enterprise Application Solutions
ERP, Java DB2 access, Jdbc, JTA, etc...
IBM in Rochester, MN  (Phone: 507.253.5982   T/L 553-5982)
mailto:kulack@us.ibm.com   Personal: mailto:kulack@magnaspeed.net
AIM Home:FKulack  AIM Work:FKulackWrk
MSN Work: fakulack@hotmail.com




As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.