Althought its specific to your software, you should
probably manage this from within the thread. Terminating
threads from outside can lead to leaked resources - even
in .Net where, for example you may have native handles
that require proper cleanup, or calls to make to IDispose
within .Net.
Perhaps you would set a time-to-live (TTL) value for your
thread before invoking it, and have the thread check and
dispose/cleanup gracefully? I would not recommend that
you rely on Timers for this.
Of course the thread cannot guarantee to be millisecond
precise, but at least you can set limits.
HTH,
mk
-----Original Message-----
Timeout for the thread.
eg: assign 1 minutes to the thread, the thread could
running for 2 minutes.So when the timeout happen, the thread should terminate
itself.Can I do that? Thanks.
"100" <10*@100.com> wrote in message
news:Oq**************@TK2MSFTNGP12.phx.gbl... Timeout for what?
B\rgds
100
.