Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Sebastian Newsgroups: comp.lang.java.programmer Subject: Re: Concurrent bidirectional one-to-many map? Date: Wed, 11 May 2011 20:47:44 +0200 Organization: albasani.net Lines: 35 Message-ID: References: <08586289-8935-4532-93d0-e8c7dd45cb24@c1g2000yqe.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net VG8vxJ9iNsorjvooej0hDYdHarbfJ7tQ0hzcK7Ix3e9KCY8B7tOapPc/BAaS7+dsGnOTtm85zz4zBawUFjv5gKo/ZakUAPNsKTWIFlvn9N+5SJzY8JaUfsTkVDf7MYzV NNTP-Posting-Date: Wed, 11 May 2011 18:47:45 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="Yf29MtQP7bXB2isMCZVZ+dhViLjnr2ClNQzzFLRiP0mneo4SXF3S+G5nnlxOYlPLtFVBB3zf6aU9SSlP0X2a5joAlhDlZaLQVGdVIYcoQowsXts0j134WC9qnq0pjf63"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: Cancel-Lock: sha1:UekpvqvnFhQkxEKq2Mik3vbOr4s= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3985 Am 11.05.2011 15:00, schrieb Lew: > > Why have you never answered my questions about long locks? > > You seem to be going through a lot of gyrations unnecessarily. Just lock > the data you need to lock. That Read-Write-Lock stuff does seem to be unnecessarily complex, I should really synchronize on the workspace instance, as you already recommended in your post dated 07.05.2011 13:59: > SO - just hold > the lock (one you use explicitly and for all operations on the same > instance) until the method is done. > It's kind of rude that you ask for help but don't respond to requests > for further information. I'm sorry, I certainly did not intend to withhold information. To what post are you referring? I find three previous posts in this thread that were authored by you: The one mentioned above dated 07.05.2011 13:59, one dated 07.05.2011 18:49 endorsing Patricia's suggestion, and one dated 10.05.2011 00:36 kindly explaining the concept of "Monitor". I did just reread them and did not find a question about "long locks". (I am also not familiar with the term.) Sorry if I'm being a dunce, but if you care to repeat your question I'll try to answer it. -- Sebastian