Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How does threads work?

Status
Not open for further replies.

801119

Programmer
Apr 10, 2000
311
SE
Hey all!!

I would like to know how a thread works, and how to create one!!

thx! Martin G Broman
mgb_svea@thevortex.com

DWS - Alpha Whitin Dead Wolf Society
 
Each time you start a program in NT, 9x, etc. you are running another thread. This allows you to run multiple programs at one. You can also start a thread from within a program. One of the best uses of threads is to run a program in the background. For example, you can run a program that uses a thread to periodicaly check for input from a serial port while still allowing the user to type commands in the foreground.

You should look carefully at TThread.

James P. Cottingham
 
Also there exist some Win32API functions like CreateThread. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top