由于不同的虚拟机的实现不同,在开发中要注意以下两点:

1.不要依赖finalization来达到程序的正确性

2.不要依赖线程的优先级比较来达到程序的正确性

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.