R
Richard Chandler
Does anyone know whether it's possible to make the ThreadPool only have one
thread in it ?
I have a highly parallel engine where many objects can be in many states ...
where work carried out at each state is done with a QueueUserWorkItem.
I need to debug the system to make sure it works properly in for each
individual object.
Instead of kicking off a WaitCallback delegate ... I'm invoking it directly
(DynamicInvoke) when I'm in Single Threaded Debug mode ... but this does
alter the behaviour of my code slightly (consuming more stack, functions not
exiting until 9 levels of work are done, rather than each one finishing
before the next starts as with multithreaded environment).
So in short, does anyone know how to make the ThreadPool only have one
thread in it ?
Thanks if you can help,
R.
thread in it ?
I have a highly parallel engine where many objects can be in many states ...
where work carried out at each state is done with a QueueUserWorkItem.
I need to debug the system to make sure it works properly in for each
individual object.
Instead of kicking off a WaitCallback delegate ... I'm invoking it directly
(DynamicInvoke) when I'm in Single Threaded Debug mode ... but this does
alter the behaviour of my code slightly (consuming more stack, functions not
exiting until 9 levels of work are done, rather than each one finishing
before the next starts as with multithreaded environment).
So in short, does anyone know how to make the ThreadPool only have one
thread in it ?
Thanks if you can help,
R.