Running a thread with timeout

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

Guest

Hi,

I'm fairly new to threading and i would like to start a new thread but when
the thread isn't completed within 30 seconds i would like the thread to end
and resume the procedure that started the thread. Preferably with an event.

I tried to find information on the internet but i can't find a sample that i
understand.
The samples that are provided include several other things that i think i
don't need.
Language is a problem and i can't find any (good) samples in my own language.

If you can, please help, it would be greatly appriciated

Thanks in advance!

Rob Smeets
 
My first thought is that if you are "resuming the procedure that started the
thread", you are wanting to block the program until the thread finishes or
times out. If this is the case, do you really need a thread at all?
 
Rob,

Would you not try with a more simpler solution. A thread is not something
that stops direct when you abort it etc.

As well can you tell why you want to use threading (as Robin already asked).
Often we see here that people want to use threading and than the only result
is that the application takes more resources and time.

Language should not be a problem, the most activate persons in this
newsgroup are from German, English, Danish, Spanish and Dutch speaking
countries (I hope I forget nobody) and there are a lot of visitors with
other native languages. While your name sound at least Dutch.

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

Back
Top