Take the 2-minute tour ×

I am after a example of some code in powershell using the threadpool. my friends at google can not help me. Any example would be great.


share|improve this question
add comment

1 Answer

From my experience, using the threadpool in V1 crashes the session.

There is a blog post here about creating threads and includes some code.

V2 has support for background jobs and other runspaces, but that is still in CTP... Hopefully there will be more updates from PDC about the status of V2 (other than that it will be installed by default in Server 2008 R2).

share|improve this answer
It is now four years later. Powershell V 2 was released in August, 2009. Powershell V 3 was released in 2012. IMO, You are more likely to be successful using the job mechanisms that Powershell provides for you than you are directly manipulating the thread mechanism, though there may be a lot of overhead. –  darin strait Nov 1 '12 at 13:32
add comment

Your Answer


