Hi,
how does one end a thread when it is done eg i have a program the when u press a button it starts a thread, this thread performs a set of instructions and then when it is done it it finished how do you end a thread then when the code is done, thus allowing the user to perform mulitple queries?
Thanks
CrazyProgrammer
0
Light Poster
Recommended Answers
Jump to PostUnless it's in an infinite loop, it ends when the method you used to start the thread is done.
All 3 Replies
Momerath
1,327
Nearly a Senior Poster
Featured Poster
CrazyProgrammer
0
Light Poster
Venjense
2
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.