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 / Windows Forms / WinForm General / August 2007

Tip: Looking for answers? Try searching our database.

What happens to my threads...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roger - 29 Aug 2007 16:32 GMT
I have a windows service (I know, wrong group but I couldn't find a windows
service group) loads an individual record from a db to do some work.
I use a thread to do this because it is possible for a large number of
requests to come through at the same, or close to the same time. Part of the
function involves me updating  a clients database via a web-service. Since
this can be slow at times I don't want to serialize the requests, hence the
threads.

The threading seems to work fine. The processes 'spin off' and run
concurrently. I don't ever 'kill' the thread. How does it know when to
end/turn itself off? I assume it does... but I'd hate to get really busy and
find out I was wrong...

Thanks.

I do my threading like this:

tp = New ThreadedProcessor
thisThread = New Thread(AddressOf tp.ReturnCSRRequests)
thisThread.Start()
Steve - 29 Aug 2007 16:38 GMT
When tp.ReturnCSRRequests finishes executing, its thread is killed.

Steve C.
MCSD,MCAD,MCSE,MCP+I,CNE,CNA,CCNA

> I have a windows service (I know, wrong group but I couldn't find a windows
> service group) loads an individual record from a db to do some work.
[quoted text clipped - 16 lines]
> thisThread = New Thread(AddressOf tp.ReturnCSRRequests)
> thisThread.Start()
Roger - 29 Aug 2007 17:02 GMT
Thank you.

BTW: Do you have time to work with taking all those courses??? You've got a
whole alphabet there!

> When tp.ReturnCSRRequests finishes executing, its thread is killed.
>
[quoted text clipped - 22 lines]
>> thisThread = New Thread(AddressOf tp.ReturnCSRRequests)
>> thisThread.Start()
Steve - 29 Aug 2007 17:14 GMT
Who has time to work?? :)

I've had most of these for quite a while.

Steve C.
MCSD,MCAD,MCSE,MCP+I,CNE,CNA,CCNA

> Thank you.
>
[quoted text clipped - 27 lines]
>>> thisThread = New Thread(AddressOf tp.ReturnCSRRequests)
>>> thisThread.Start()

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



©2008 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.