Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Read Write Locks question?
I'm trying to implement read/write locks into my class to replace synchronization on methods.
My question is...will I only need to add read/write locks onto methods that were synchronized? Or is it possible that some methods, that were unsynchronized when synchronization was the lock method I was using, may require read/writers?
Thanks, hope this makes sense
1 Answer
- JoelKatzLv 71 decade ago
Not unless you are changing the class semantics. So long as the class semantics haven't changed (the way things outside the class call into it and what they expect) then anything that didn't need to be synchronized before shouldn't need any synchronization now.