Register / Login
Developer Certification (OCMJD)
posted 9 years ago
I have a Map with Hotel Bookings as Cache ...
How did people implement search with Synchronization ?
Is the map locked while another thread is searching for Bookings ?
delete be possible during a search ?
In Andrew's book, there was no locking in the search algorithm, what if a thread deleted a record after a call to <Map>.keySet.iterator() ?
I'm just wondering if using reentrant.readWriteLock to lock for even searches is not going to impact significantly on the app.
About the Unreferenced
Record Locking using concurrent.locks package Lock and Condition methodology
input of text in the hashmap in struts
(Regex + CharSequence) VS (Regex + StringBuffer) VS (startsWith + StringBuffer)
Do you give money to beggars?