Use the System.Threading.Lock class to make it easier and easier to implement thread safety in your applications.