When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
Instead of your processor taking time to process a call one at a time threads run simultaneously together allowing for faster program speed and less overhead.
Why do you want to know this? Are you a programmer? The average Joe doesn’t need to worry about this kind of stuff unless they are really interested.
I dabbled in C++ back in high school, nothing too complex though. The reason I was interested in what threads are is because I downloaded a neat-o little program that displays all sorts of useless info about my computer; half of which I don't understand, and the other half I really didn't need to know in the first place! So when someone asks me, "How many threads you running?" I can answer with confidence, "420, and I know what a thread is, thanks to the guys on FTE!"
For my purposes - an original post on a message board generates a "thread" - which is the string of responses that follow that original post. All of the responces to it are linked sequentially to the original point that was made, or question that was asked.
This is the basic on a message board thread - it is the "Thought Line" following from the original question or idea.
Nothing wrong with the explanation of threads except a single CPU cannot work on multiple threads simultaneously. A CPU can only perform work on a single thread at a time. The CPU will perform a little work on one thread, then pause that thread, and move on to the next thread, and so on making it's rounds. It may appear it's working on multiple things at once, but it's not really. It's just jumping around performing a little here a little there, but it does have an algorithm to tell it what to work.
Any Intel processor with HT (Hyperthreading Technology) actually works on 2 threads at once. The newest Intel CPUs just shipping with Dual Core technology are 2 HT CPUs in one chip, so they will work on 4 threads at once. And by the way, think of a thread as a single program instruction. Threads are part of processes. Having your browser open is a single process with many threads.
Last edited by MRKnight; Apr 18, 2005 at 11:10 AM.
Any Intel processor with HT (Hyperthreading Technology) actually works on 2 threads at once. The newest Intel CPUs just shipping with Dual Core technology are 2 HT CPUs in one chip, so they will work on 4 threads at once. And by the way, think of a thread as a single program instruction. Threads are part of processes. Having your browser open is a single process with many threads.
This isn't entirely true. A processor can only execute one instruction (process or "thread") per clock cycle. The HT processor executes two instructions, true, but only by creating two virtual processors per physical processor. It does this by replication of instruction so that one virtual processor is executing on the rising edge of the clock cycle and the other virtual processor is executing on the falling edge of the clock cycle. The single physical processor appears to be running two processes simultaneously, but the processes are actually running sequentially.
Did I confuse threads with fibers? LCampbell - I did not know that that was how it worked. I'm curious to know more of the technical specs, do you know any good sources?
Did I confuse threads with fibers? LCampbell - I did not know that that was how it worked. I'm curious to know more of the technical specs, do you know any good sources?
I doubt you confused thread with fiber, since fiber isn't a process. The technical information is available to the public at Intel's website. Google "hyperthreading." They've published excellent documents regarding HT Technology that are available throught the white paper menu.
Rezvani's Latest Post-Apocalyptic Monster Is a Ford F-150 Raptor Underneath
Slideshow: Called the Fortress, the 850-horsepower pickup combines Raptor underpinnings with military-inspired features, survival equipment, and a starting price of $285,000.