Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / September 2005

Tip: Looking for answers? Try searching our database.

Running a thread with timeout

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob Smeets - 20 Sep 2005 13:55 GMT
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
Robin Tucker - 20 Sep 2005 14:38 GMT
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?

> Hi,
>
[quoted text clipped - 18 lines]
>
> Rob Smeets
shiv_koirala@yahoo.com - 20 Sep 2005 14:58 GMT
Did you try thread.suspend , thread.sleep etc etc it has lot of
options.

Regards,
C#, VB.NET , SQL SERVER , UML , DESIGN Patterns Interview question book
http://www.geocities.com/dotnetinterviews/
Cor Ligthert [MVP] - 20 Sep 2005 15:24 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.