how to lock several objects?
<p>I want to lock on two objects at the same time.
Why can't I write like such code?</p>

<p>lock (obj1, obj2)</p>

<p>Should I always write like that?</p>

<pre><code>lock (obj1)
{
    lock (obj2)
    {
    }
}
</code></pre>

<p>Probably this could be make simpler?
Likely it would be better to introduce special private object and use it for a lock...</p>
