Page 1 of 1 [ 2 posts ] 

dgd1788
Veteran
Veteran

User avatar

Joined: 8 Oct 2005
Gender: Male
Posts: 1,335
Location: Indiana, USA

20 Feb 2007, 7:20 pm

What is thread killing and how do you do it?


_________________
If great minds think alike, does that mean that stupid minds think differently?


lau
Veteran
Veteran

User avatar

Joined: 17 Jun 2006
Age: 76
Gender: Male
Posts: 9,798
Location: Somerset UK

20 Feb 2007, 8:01 pm

That threw me for a moment. In a forum, with threads, and asking how to kill them?

I guess you mean threads as in programs.

There are lots of ways of making a computer /appear/ to do more than one thing at a time (and some ways to literally have them do so).

One of the simplest mechanisms used within a single piece of code is "threading".

For an example of a very tiny bit of threading, I have a program on my website that does the "Countdown" numbers game. It uses a thread to do the solution, mainly because it originally was sooo slow. The UI let me abort a solution before it had finished. Clicking on the "Quit" button caused the main loop code to kill the thread it had started that was doing all the calculations.