title: Thread synchronization in C#?
body: <p>I have lots of few small functions, each executes a query. I want only one function to be running at a time, what is the best possible way of thread sync to avoid database locked issue in SQLite (C#).</p>
  
  <p>The functions are in multiple classes, how will you lock all the functions in all the DB classes, so that only one function from any of the DB class gets executed.</p>