Skip to main content

ThreadPool in C#

I have two questions:

  1. Is there a way to insert a ThreadPool functoin that dosen't gets object as parameter(to insert a function to threadPool it need to be function that return void and ged one parameter -objcet) e.g i want to insert this function: double foo(int a,doble,b,string c)?
  2. Is there a way to wait to thread in the pool (like join)?
aharon
  • 7.6k
  • 10
  • 40
  • 50