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); } }
Posted in DevelopMentor | Visual Studio |Comments [0]
A blog by Michael Kennedy
Speaking Events
About: Michael is an instructor for DevelopMentor, a .NET enthusiast, an agile pioneer, an entrepreneur, a father of three girls, a husband, a student, and a teacher.
Explore Related Content
Concepts >> azure - Workflow - RESTful - Unit Testing - web - WCF - ASP.Net - MVC - LINQ
Tools >> Visual Studio ClickOnce IIS
Type >> Screencast - Tools - Article - How To - Course
@dm_the_company @mkennedy @andrewclymer @bmaso @danamiga @georgeshep @isidore_us @jason_diamond @markblomsma @marksm @mauricedb @pierrenallet @richardblewett @tonysneed @wallacekelly
Sign In