The dynamics of weight loss are intriguing, in look at the many individuals who desire to shed some weight in comparison to the small number nobody do. You would think with each of the diet plans and dietary supplements, that weight problems would go away. But that hasn't came about, so something must be totally wrong. The sheer number of programs and products out there makes it difficult to figure out what is effective and what is not. And it's not at all as if one solution is great at general…See More
Just joined last night and successfully logged in here, ...ning.com following the link above led to a request to relogin and its not working. Not much of an issue yet....but thought I'd pass it on.
Thanks for the quick reply. Maybe I was not very explicit in my message. I am made to understand that lock.lock behaves exactly the same as synchronized on the lock object. which means if synchronized acquires the object monitor, so does…"
"Welcome to a slightly confusing feature of Locks.
If you use one of the explicit Lock classes such as ReentrantLock, then the method you call is called await()-- notice the "a" at the beginning-- rather than the wait() method (which still…"
The thread calling synchronzed(obj) acquires and owns that objects monitor till it releases it. Does lock.lock also behaves in a similar fashion. I tried calling lock.wait() after lock.lock() using an instance of ReentrantLock and the code gave me IllegalMonitorStateException.See More