Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Hi, Bill In your article "Object finalization and cleanup", the approach 2 (LogFileManager), you wrote Considering in a multithreaded enviroment, and you pass the reference of LogFileManager to different thread(client), each thread(client) would be able to share the resource to write messages to the same log file. In order to provide integrity, I think at least the method "writeToFile" should be "synchronized". Is this correct? Thanks, Replies: |
Sponsored Links
|