{"video_id":"wnS50lJicXc","title":"What is Hyper Threading Technology as Fast As Possible","channel":"Techquickie","show":"Techquickie","published_at":"2014-05-07T14:58:16Z","duration_s":288,"segments":[{"start_s":0.08,"end_s":7.6,"text":"Hyperthreading technology from Intel has been on their computer processors for","speaker":null,"is_sponsor":0},{"start_s":4.24,"end_s":10.559,"text":"over 10 years. And yet, much like the","speaker":null,"is_sponsor":0},{"start_s":7.6,"end_s":15.839,"text":"elusive fox, most people know very little about what it says. Let's start","speaker":null,"is_sponsor":0},{"start_s":12.88,"end_s":21.279,"text":"with an analogy. Let's say I am a CPU and I'm trying to process food or eat as","speaker":null,"is_sponsor":0},{"start_s":19.439,"end_s":25.359,"text":"some people call it. I can only do as much eating as one mouth can do. If I","speaker":null,"is_sponsor":0},{"start_s":23.68,"end_s":30.4,"text":"could add more mouths, then I could process more. This is what multi-core","speaker":null,"is_sponsor":0},{"start_s":28.08,"end_s":34.8,"text":"processors do. But due to cost constraints among other things, it's not","speaker":null,"is_sponsor":0},{"start_s":32.64,"end_s":38.8,"text":"always possible to take that approach. So, I've got just one mouth. I can use","speaker":null,"is_sponsor":0},{"start_s":37.2,"end_s":44.079,"text":"my hand to pick up the food, bring it to my mouth, then grab another bite while","speaker":null,"is_sponsor":0},{"start_s":41.6,"end_s":47.76,"text":"my mouth is busy. If I finish chewing before my hand is ready to deliver me","speaker":null,"is_sponsor":0},{"start_s":46.0,"end_s":52.239,"text":"more food, however, then my mouth is just sitting there doing nothing. If","speaker":null,"is_sponsor":0},{"start_s":50.0,"end_s":56.96,"text":"only I could use two hands to prepare food for my mouth. Then even though my","speaker":null,"is_sponsor":0},{"start_s":54.399,"end_s":62.32,"text":"mouth can't actually work any faster, I wouldn't waste any time. Oh, wait. I can","speaker":null,"is_sponsor":0},{"start_s":60.079,"end_s":66.799,"text":"do that. That's hyperthreading. One processor and intelligent scheduling to","speaker":null,"is_sponsor":0},{"start_s":65.119,"end_s":72.479,"text":"make sure that it's always working. Pretty awesome, right? Well, usually","speaker":null,"is_sponsor":0},{"start_s":70.159,"end_s":76.799,"text":"hyperthreading can't do much for single threaded workloads where you can only","speaker":null,"is_sponsor":0},{"start_s":74.56,"end_s":80.96,"text":"work on one thing at a time. For example, if you wanted to eat a two","speaker":null,"is_sponsor":0},{"start_s":78.72,"end_s":85.28,"text":"scoop ice cream cone, you can't work on the bottom scoop until the top scoop has","speaker":null,"is_sponsor":0},{"start_s":83.119,"end_s":90.96,"text":"already been consumed. And heaven help you if you try to eat the cone first.","speaker":null,"is_sponsor":0},{"start_s":88.72,"end_s":95.68,"text":"In this example, there is no benefit to adding more mouths or more hands. The","speaker":null,"is_sponsor":0},{"start_s":93.759,"end_s":100.079,"text":"opposite of this would be eating from a bowl of candies. Grabbing and eating a","speaker":null,"is_sponsor":0},{"start_s":97.759,"end_s":104.4,"text":"red candy does not in any way depend on finishing the blue candy that's already","speaker":null,"is_sponsor":0},{"start_s":101.92,"end_s":108.479,"text":"in my mouth. In fact, if I had some friends to help me eat it, we could","speaker":null,"is_sponsor":0},{"start_s":106.079,"end_s":112.96,"text":"consume the candy very quickly by adding more hands and more mouths. This is an","speaker":null,"is_sponsor":0},{"start_s":110.96,"end_s":117.2,"text":"example of a multi-threaded workload, and hyperthreading can definitely help","speaker":null,"is_sponsor":0},{"start_s":115.68,"end_s":120.32,"text":"with this. All right, so let's bring it away from the eating analogy for a","speaker":null,"is_sponsor":0},{"start_s":118.799,"end_s":124.799,"text":"minute and bring it back to the real world. Computing tasks that benefit from","speaker":null,"is_sponsor":0},{"start_s":122.64,"end_s":130.239,"text":"hyperthreading and multiple processing cores are video editing, 3D rendering,","speaker":null,"is_sponsor":0},{"start_s":127.52,"end_s":134.56,"text":"and heavy multitasking on your PC. Video editing is a great example because one","speaker":null,"is_sponsor":0},{"start_s":132.239,"end_s":138.319,"text":"frame of a video can be processed while the next one is queued up because the","speaker":null,"is_sponsor":0},{"start_s":136.319,"end_s":141.92,"text":"video is already shot. The PC doesn't have to guess what's going to be in the","speaker":null,"is_sponsor":0},{"start_s":139.76,"end_s":145.76,"text":"next frame. It already knows. Here's another multitasking example. One","speaker":null,"is_sponsor":0},{"start_s":144.0,"end_s":149.92,"text":"processor can be handling your light tasks like Skype and music playback,","speaker":null,"is_sponsor":0},{"start_s":148.08,"end_s":153.92,"text":"antivirus, and whatever else you have running in the background, while another","speaker":null,"is_sponsor":0},{"start_s":151.599,"end_s":158.56,"text":"one can focus all its attention on running a power- hungry video game in","speaker":null,"is_sponsor":0},{"start_s":156.0,"end_s":162.64,"text":"the foreground. So, with that out of the way, how do you actually choose a","speaker":null,"is_sponsor":0},{"start_s":160.239,"end_s":166.4,"text":"processor for your PC? The first thing I hope you got out of this is that","speaker":null,"is_sponsor":0},{"start_s":164.319,"end_s":171.599,"text":"whatever task manager might say, hyperthreading is not the same as","speaker":null,"is_sponsor":0},{"start_s":169.44,"end_s":175.92,"text":"doubling your processing course. It's basically a clever trick for more","speaker":null,"is_sponsor":0},{"start_s":173.68,"end_s":180.239,"text":"efficient scheduling of the work that is done by the processing cores that you","speaker":null,"is_sponsor":0},{"start_s":177.92,"end_s":184.959,"text":"have. It also increases power consumption and heat output a little","speaker":null,"is_sponsor":0},{"start_s":182.64,"end_s":189.28,"text":"bit, but the benefits usually outweigh this drawback. In the real world, you","speaker":null,"is_sponsor":0},{"start_s":187.04,"end_s":193.36,"text":"can get huge double-digit performance improvements all the way to no","speaker":null,"is_sponsor":0},{"start_s":191.519,"end_s":197.68,"text":"performance improvement at all and in very rare cases even very slightly","speaker":null,"is_sponsor":0},{"start_s":195.519,"end_s":201.28,"text":"decreased performance depending on how the software is optimized. So, it's","speaker":null,"is_sponsor":0},{"start_s":199.599,"end_s":205.2,"text":"important to do your research about the software you'll be running. If the work","speaker":null,"is_sponsor":0},{"start_s":203.12,"end_s":208.64,"text":"you do isn't heavily multi-threaded, then you might do just as well to save","speaker":null,"is_sponsor":0},{"start_s":206.959,"end_s":212.48,"text":"your money and buy a processor that doesn't have hyperthreading. Most games","speaker":null,"is_sponsor":0},{"start_s":210.72,"end_s":216.879,"text":"right now, for example, can't take advantage of more than a couple of","speaker":null,"is_sponsor":0},{"start_s":213.92,"end_s":220.799,"text":"threads. However, if the work you do is heavily multi-threaded, then remember","speaker":null,"is_sponsor":0},{"start_s":218.48,"end_s":224.48,"text":"this general rule. Hyperthreading is better than no hyperthreading, but is","speaker":null,"is_sponsor":0},{"start_s":222.64,"end_s":229.36,"text":"not nearly as good as adding more physical processors. In an ideal world,","speaker":null,"is_sponsor":0},{"start_s":227.2,"end_s":233.2,"text":"lots of physical processors, each with hyperthreading, is where it's at.","speaker":null,"is_sponsor":0},{"start_s":231.44,"end_s":236.879,"text":"Speaking of where it's at, audible.com gives you a free audiobook just for","speaker":null,"is_sponsor":0},{"start_s":235.12,"end_s":240.319,"text":"setting up a new account. And if you use the audible.com/Linus","speaker":null,"is_sponsor":0},{"start_s":238.64,"end_s":244.159,"text":"link below me, then it makes me look pretty good. They've got over 150,000","speaker":null,"is_sponsor":0},{"start_s":242.64,"end_s":248.08,"text":"books with everything from fiction to self-help to business. I checked out The","speaker":null,"is_sponsor":0},{"start_s":246.159,"end_s":252.239,"text":"Four Hour Work Week by Timothy Ferris, which is why I am in Hawaii right now.","speaker":null,"is_sponsor":0},{"start_s":250.319,"end_s":257.199,"text":"That's right, suckers. I recorded this before I left and now I'm on vacation.","speaker":null,"is_sponsor":0},{"start_s":255.04,"end_s":262.32,"text":"Actually, I'm I'm not on vacation. I'm in Hawaii working, but um you know, I'm","speaker":null,"is_sponsor":0},{"start_s":260.239,"end_s":266.56,"text":"taking a few days to not work while I'm there. So, you know, yeah, YouTube's a","speaker":null,"is_sponsor":0},{"start_s":264.56,"end_s":270.24,"text":"tough gig, but you can help by heading over to audible.com/Linus","speaker":null,"is_sponsor":0},{"start_s":268.4,"end_s":273.759,"text":"and getting your free audio book today. This has been another episode of Fast as","speaker":null,"is_sponsor":0},{"start_s":272.24,"end_s":276.88,"text":"Possible here on TechQuicki. Don't forget to subscribe for more videos like","speaker":null,"is_sponsor":0},{"start_s":275.36,"end_s":280.88,"text":"this. And if you check out the other link in the video description, you can","speaker":null,"is_sponsor":0},{"start_s":278.639,"end_s":284.479,"text":"suggest future topics for fast as possible. And that is exactly why we're","speaker":null,"is_sponsor":0},{"start_s":282.639,"end_s":288.72,"text":"doing this one about hyperthreading. So many people requested it. So we do read","speaker":null,"is_sponsor":0},{"start_s":286.08,"end_s":288.72,"text":"them and we do","speaker":null,"is_sponsor":0}],"full_text":"Hyperthreading technology from Intel has been on their computer processors for over 10 years. And yet, much like the elusive fox, most people know very little about what it says. Let's start with an analogy. Let's say I am a CPU and I'm trying to process food or eat as some people call it. I can only do as much eating as one mouth can do. If I could add more mouths, then I could process more. This is what multi-core processors do. But due to cost constraints among other things, it's not always possible to take that approach. So, I've got just one mouth. I can use my hand to pick up the food, bring it to my mouth, then grab another bite while my mouth is busy. If I finish chewing before my hand is ready to deliver me more food, however, then my mouth is just sitting there doing nothing. If only I could use two hands to prepare food for my mouth. Then even though my mouth can't actually work any faster, I wouldn't waste any time. Oh, wait. I can do that. That's hyperthreading. One processor and intelligent scheduling to make sure that it's always working. Pretty awesome, right? Well, usually hyperthreading can't do much for single threaded workloads where you can only work on one thing at a time. For example, if you wanted to eat a two scoop ice cream cone, you can't work on the bottom scoop until the top scoop has already been consumed. And heaven help you if you try to eat the cone first. In this example, there is no benefit to adding more mouths or more hands. The opposite of this would be eating from a bowl of candies. Grabbing and eating a red candy does not in any way depend on finishing the blue candy that's already in my mouth. In fact, if I had some friends to help me eat it, we could consume the candy very quickly by adding more hands and more mouths. This is an example of a multi-threaded workload, and hyperthreading can definitely help with this. All right, so let's bring it away from the eating analogy for a minute and bring it back to the real world. Computing tasks that benefit from hyperthreading and multiple processing cores are video editing, 3D rendering, and heavy multitasking on your PC. Video editing is a great example because one frame of a video can be processed while the next one is queued up because the video is already shot. The PC doesn't have to guess what's going to be in the next frame. It already knows. Here's another multitasking example. One processor can be handling your light tasks like Skype and music playback, antivirus, and whatever else you have running in the background, while another one can focus all its attention on running a power- hungry video game in the foreground. So, with that out of the way, how do you actually choose a processor for your PC? The first thing I hope you got out of this is that whatever task manager might say, hyperthreading is not the same as doubling your processing course. It's basically a clever trick for more efficient scheduling of the work that is done by the processing cores that you have. It also increases power consumption and heat output a little bit, but the benefits usually outweigh this drawback. In the real world, you can get huge double-digit performance improvements all the way to no performance improvement at all and in very rare cases even very slightly decreased performance depending on how the software is optimized. So, it's important to do your research about the software you'll be running. If the work you do isn't heavily multi-threaded, then you might do just as well to save your money and buy a processor that doesn't have hyperthreading. Most games right now, for example, can't take advantage of more than a couple of threads. However, if the work you do is heavily multi-threaded, then remember this general rule. Hyperthreading is better than no hyperthreading, but is not nearly as good as adding more physical processors. In an ideal world, lots of physical processors, each with hyperthreading, is where it's at. Speaking of where it's at, audible.com gives you a free audiobook just for setting up a new account. And if you use the audible.com/Linus link below me, then it makes me look pretty good. They've got over 150,000 books with everything from fiction to self-help to business. I checked out The Four Hour Work Week by Timothy Ferris, which is why I am in Hawaii right now. That's right, suckers. I recorded this before I left and now I'm on vacation. Actually, I'm I'm not on vacation. I'm in Hawaii working, but um you know, I'm taking a few days to not work while I'm there. So, you know, yeah, YouTube's a tough gig, but you can help by heading over to audible.com/Linus and getting your free audio book today. This has been another episode of Fast as Possible here on TechQuicki. Don't forget to subscribe for more videos like this. And if you check out the other link in the video description, you can suggest future topics for fast as possible. And that is exactly why we're doing this one about hyperthreading. So many people requested it. So we do read them and we do"}