CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Threading
C#
public void Go()
{
    for (int i = 0; i < 100; i++)
    {
        WaitCallback wcb = new WaitCallback(this.DoWork);
        ThreadPool.QueueUserWorkItem(wcb, i);
    }
    Console.ReadLine();
}
by Cat   November 08, 2010 @ 2:53am
122 Views
no comments
 
C#
private static object _SyncLock = new object();
 
public TableInfo<TEntity> TableInfo
{
  get 
  {
      if (_TableInfo == null)
      {
          lock (_SyncLock)
          {
by Rick Strahl   August 23, 2009 @ 9:19pm
263 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate