title: Message queue vs thread lock
body: <p>I have a windows application build on .net technology. In my application I get lots of messages from different threads. Once I get a message I need to call a function which should be thread safe. 
  I have used </p>
  
  <pre><code>lock (lockThis)
          {
              TSFunction(message);
          }
  </code></pre>
  
  <p>Now some one recommended me to use message queue instead. I am not at all familiar with this approach but I want to choose the better one.
  Should I switch to message queue? If yes then can someone please point me to some good tutorial?</p>