reuse function in the thread

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have written a program using thread. i have 8 threads, each doing their own
printing.

i wish to add a restart function which allow to do printing all over again,
but i am now fcing the problem of unable to stop and reuse the threads

pls help me...
 
notregister said:
i have written a program using thread. i have 8 threads, each doing their
own
printing.

i wish to add a restart function which allow to do printing all over
again,
but i am now fcing the problem of unable to stop and reuse the threads


How To Stop a Thread in .NET (and Why 'Thread.Abort' is Evil)
<URL:http://www.interact-sw.co.uk/iangblog/2004/11/12/cancellation>

.... should give you an idea how to stop the thread.
 
Herfried,

This shows the opposite method I used in the queue sample I made/showed
yesterday.

However I am not sure it is really needed, however a method and it gives he
opportunity to close the printers very clean, I keep it in mind because it
is very simple.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Reusing Threads 2
Starting a Thread takes too long 25
invoking on the UI thread 5
threading questions 6
Why Won't My Thread Abort 5
Thread Reuse 2
Handling Threads 5
VB.net and threading 4

Back
Top