PC Review


Reply
Thread Tools Rate Thread

How to delete thread from a ThreadPool

 
 
Mullin Yu
Guest
Posts: n/a
 
      28th Oct 2003
As subject.

How can an main application delete/reset a thread at the ThreadPool? There's
no method provided by ThreadPool?

Thanks!


 
Reply With Quote
 
 
 
 
Dmitriy Lapshin [C# / .NET MVP]
Guest
Posts: n/a
 
      28th Oct 2003
Hi,

ThreadPool concept does not assume its threads will be managed from outside.
I'd recommend ensuring that your work items don't have any negative impact
on the thread pool instead.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Mullin Yu" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> As subject.
>
> How can an main application delete/reset a thread at the ThreadPool?

There's
> no method provided by ThreadPool?
>
> Thanks!
>
>


 
Reply With Quote
 
Mullin Yu
Guest
Posts: n/a
 
      28th Oct 2003
But, how can i reset/delete a thread if it's hanging or timeout if no
methods provided? use thread instead of threadpoll?

cheers,
mullin

"Dmitriy Lapshin [C# / .NET MVP]" <x-(E-Mail Removed)> wrote
in message news:(E-Mail Removed)...
> Hi,
>
> ThreadPool concept does not assume its threads will be managed from

outside.
> I'd recommend ensuring that your work items don't have any negative impact
> on the thread pool instead.
>
> --
> Dmitriy Lapshin [C# / .NET MVP]
> X-Unity Test Studio
> http://x-unity.miik.com.ua/teststudio.aspx
> Bring the power of unit testing to VS .NET IDE
>
> "Mullin Yu" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > As subject.
> >
> > How can an main application delete/reset a thread at the ThreadPool?

> There's
> > no method provided by ThreadPool?
> >
> > Thanks!
> >
> >

>



 
Reply With Quote
 
Dmitriy Lapshin [C# / .NET MVP]
Guest
Posts: n/a
 
      28th Oct 2003
The only reason I see is that a work item you queued has caused the thread
to hang. You should fix that work item to prevent it from hanging or timing
out.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Mullin Yu" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> But, how can i reset/delete a thread if it's hanging or timeout if no
> methods provided? use thread instead of threadpoll?
>
> cheers,
> mullin
>
> "Dmitriy Lapshin [C# / .NET MVP]" <x-(E-Mail Removed)> wrote
> in message news:(E-Mail Removed)...
> > Hi,
> >
> > ThreadPool concept does not assume its threads will be managed from

> outside.
> > I'd recommend ensuring that your work items don't have any negative

impact
> > on the thread pool instead.
> >
> > --
> > Dmitriy Lapshin [C# / .NET MVP]
> > X-Unity Test Studio
> > http://x-unity.miik.com.ua/teststudio.aspx
> > Bring the power of unit testing to VS .NET IDE
> >
> > "Mullin Yu" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > As subject.
> > >
> > > How can an main application delete/reset a thread at the ThreadPool?

> > There's
> > > no method provided by ThreadPool?
> > >
> > > Thanks!
> > >
> > >

> >

>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
From Thread to ThreadPool Charlie Brown Microsoft VB .NET 6 23rd Feb 2009 05:14 PM
New Thread or ThreadPool? Curious Microsoft Dot NET 9 13th Jun 2008 08:37 PM
Use Thread or ThreadPool Simon Microsoft C# .NET 4 15th Oct 2007 04:30 PM
Per-thread-pool-thread data using ThreadPool class travislspencer@gmail.com Microsoft Dot NET Framework 0 12th Apr 2007 05:57 AM
ThreadPool VS Thread Sin Jeong-hun Microsoft Dot NET 7 28th Feb 2007 11:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:10 PM.