private static void UseThreadPool(int count) { for ( int i = 0; i < count; i++ ) { ThreadPool.QueueUserWorkItem( delegate { SlowMethod(); } ); } }
private static void UseThreadPool(int count) { for ( int i = 0; i < count; i++ ) { ThreadPool.QueueUserWorkItem( delegate { SlowMethod(); } ); Thread.Sleep(1); } }
Remember Me
a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u
Page rendered at Friday, July 04, 2008 2:57:32 PM (Eastern Standard Time, UTC-05:00)
Disclaimer These postings are provided "AS IS" with no warranties, and confer no rights.