{"video_id":"5S-tTDeFZfY","title":"What is a Kernel?","channel":"Techquickie","show":"Techquickie","published_at":"2024-05-04T14:58:16Z","duration_s":338,"segments":[{"start_s":5.12,"end_s":13.04,"text":"When you hear the word kernel, you might think of popcorn chicken or popcorn","speaker":null,"is_sponsor":0},{"start_s":10.8,"end_s":17.039,"text":"chicken or the colonel's popcorn chicken. But you might have also come","speaker":null,"is_sponsor":0},{"start_s":15.12,"end_s":22.0,"text":"across the same word in a computing context with folks talking about the","speaker":null,"is_sponsor":0},{"start_s":19.039,"end_s":26.32,"text":"Linux kernel or Windows kernel. What the heck is it? The kernel is basically the","speaker":null,"is_sponsor":0},{"start_s":24.56,"end_s":30.72,"text":"heart of whatever operating system you're using. Although the kernel is a","speaker":null,"is_sponsor":0},{"start_s":28.32,"end_s":35.84,"text":"software component, it sits between your systems hardware and the rest of your OS","speaker":null,"is_sponsor":0},{"start_s":33.68,"end_s":40.16,"text":"and software. You see, user software such as your web browser or your","speaker":null,"is_sponsor":0},{"start_s":37.44,"end_s":45.04,"text":"favorite game doesn't talk directly to your hardware. Instead, the kernel","speaker":null,"is_sponsor":0},{"start_s":42.559,"end_s":49.52,"text":"serves as an intermediary. But why is this necessary? Well, one of the main","speaker":null,"is_sponsor":0},{"start_s":46.8,"end_s":54.559,"text":"functions of a kernel is to abstract away the physical differences between","speaker":null,"is_sponsor":0},{"start_s":52.0,"end_s":58.559,"text":"hardware setups. There are an endless number of possible hardware","speaker":null,"is_sponsor":0},{"start_s":56.079,"end_s":62.64,"text":"configurations in a PC or server. I mean, think of how many rigs you could","speaker":null,"is_sponsor":0},{"start_s":60.16,"end_s":67.6,"text":"build just from PC part picker lists. A kernel gives your other software a","speaker":null,"is_sponsor":0},{"start_s":65.04,"end_s":71.84,"text":"standardized surface area to interface with, making the differences between","speaker":null,"is_sponsor":0},{"start_s":69.52,"end_s":76.88,"text":"individual machines much less of an obstacle. As a more easily digestible","speaker":null,"is_sponsor":0},{"start_s":74.32,"end_s":81.68,"text":"analogy, kernels provide the low-level plumbing that your software hooks into.","speaker":null,"is_sponsor":0},{"start_s":79.92,"end_s":85.92,"text":"The pipes underneath your house might not be all that interesting, but they","speaker":null,"is_sponsor":0},{"start_s":83.759,"end_s":88.72,"text":"allow you to make tons of choices as to what you're going to hook them up to","speaker":null,"is_sponsor":0},{"start_s":87.119,"end_s":93.28,"text":"without caring whether it's a dishwasher, a jacuzzi, or that cool RGB","speaker":null,"is_sponsor":0},{"start_s":91.439,"end_s":96.64,"text":"shower head you found on Amazon. Well, like I'm going to see that and just","speaker":null,"is_sponsor":0},{"start_s":94.479,"end_s":101.52,"text":"ignore it. Another key function of the kernel is to provide security and","speaker":null,"is_sponsor":0},{"start_s":98.72,"end_s":105.92,"text":"stability. Allowing programs to talk to hardware in any way they wanted, could","speaker":null,"is_sponsor":0},{"start_s":103.6,"end_s":109.52,"text":"allow them to access data they aren't supposed to, which could lead to a","speaker":null,"is_sponsor":0},{"start_s":107.439,"end_s":113.52,"text":"system crash or data theft from a malicious process. But because programs","speaker":null,"is_sponsor":0},{"start_s":111.84,"end_s":118.079,"text":"have to interface with the system through the kernel, the kernel can","speaker":null,"is_sponsor":0},{"start_s":115.759,"end_s":122.159,"text":"prevent these sorts of shenanigans. If you've ever heard the term protected","speaker":null,"is_sponsor":0},{"start_s":119.84,"end_s":126.799,"text":"memory space, this is part of what we're talking about. Running programs get","speaker":null,"is_sponsor":0},{"start_s":124.24,"end_s":131.36,"text":"their own portion of RAM and can't access memory outside of that. thanks to","speaker":null,"is_sponsor":0},{"start_s":129.36,"end_s":135.28,"text":"the kernel. But of course, plenty of things can still go wrong. We'll tell","speaker":null,"is_sponsor":0},{"start_s":133.36,"end_s":139.52,"text":"you how and how kernels have been designed to prevent crashes right after","speaker":null,"is_sponsor":1},{"start_s":137.2,"end_s":143.52,"text":"we thank our sponsor, ODU. If you're looking to create a website, but lack","speaker":null,"is_sponsor":1},{"start_s":141.04,"end_s":147.04,"text":"the technical expertise, ODU is here to help. Building a website is quick and","speaker":null,"is_sponsor":1},{"start_s":145.44,"end_s":151.28,"text":"painless with ODO's open- source intuitive platform. Use simple yet","speaker":null,"is_sponsor":1},{"start_s":149.28,"end_s":155.12,"text":"comprehensive drag and drop elements to make an eye-catching and engaging page","speaker":null,"is_sponsor":1},{"start_s":153.2,"end_s":158.64,"text":"for your audience to interact with, all with no coding experience required.","speaker":null,"is_sponsor":1},{"start_s":157.04,"end_s":163.2,"text":"They've also recently introduced their own AI copywriter powered by Chat GPT.","speaker":null,"is_sponsor":1},{"start_s":161.599,"end_s":167.2,"text":"So, if you find yourself at a loss for words, you can let AI do the heavy","speaker":null,"is_sponsor":1},{"start_s":165.12,"end_s":171.44,"text":"lifting for you. Best of all, ODU's website e-commerce application is 100%","speaker":null,"is_sponsor":1},{"start_s":169.84,"end_s":174.959,"text":"free to use, comes with unlimited hosting, and they even pay for your","speaker":null,"is_sponsor":1},{"start_s":172.959,"end_s":178.48,"text":"domain name for the first year. So, visit the link below and start creating","speaker":null,"is_sponsor":1},{"start_s":176.48,"end_s":182.8,"text":"a website for free with ODU. Traditionally, kernels were designed in","speaker":null,"is_sponsor":1},{"start_s":180.239,"end_s":186.319,"text":"one of two main ways. Monolithic, meaning the kernel incorporates most of","speaker":null,"is_sponsor":0},{"start_s":184.8,"end_s":190.8,"text":"the main functions of the whole operating system, and micro kernel, in","speaker":null,"is_sponsor":0},{"start_s":189.04,"end_s":195.2,"text":"which the kernel handles more basic functionality, leaving more software,","speaker":null,"is_sponsor":0},{"start_s":192.72,"end_s":199.28,"text":"such as device drivers, running outside the kernel. Monolithic kernels tend to","speaker":null,"is_sponsor":0},{"start_s":197.28,"end_s":203.04,"text":"be higher performance and easier for programmers to work with, while micro","speaker":null,"is_sponsor":0},{"start_s":201.28,"end_s":207.36,"text":"kernels have the advantage of being able to kill problematic processes without","speaker":null,"is_sponsor":0},{"start_s":205.44,"end_s":211.84,"text":"bringing down the whole system. Now the Windows kernel was designed to be more","speaker":null,"is_sponsor":0},{"start_s":209.36,"end_s":217.04,"text":"of a micro kernel while the Linux kernel was more monolithic but these days both","speaker":null,"is_sponsor":0},{"start_s":214.72,"end_s":221.12,"text":"operating systems have moved towards a hybrid kernel model to try and","speaker":null,"is_sponsor":0},{"start_s":219.12,"end_s":225.599,"text":"incorporate the advantages of both design philosophies. For example, Linux","speaker":null,"is_sponsor":0},{"start_s":223.68,"end_s":229.12,"text":"is commonly found on servers that need as much uptime as possible. In other","speaker":null,"is_sponsor":0},{"start_s":227.76,"end_s":232.56,"text":"words, you don't want to reboot the whole system if there's an issue. So it","speaker":null,"is_sponsor":0},{"start_s":230.959,"end_s":236.319,"text":"makes sense that Linux has moved away from being more purely monolithic and","speaker":null,"is_sponsor":0},{"start_s":234.72,"end_s":240.72,"text":"has tried to become more modular. Meanwhile, in Windows land, gamers","speaker":null,"is_sponsor":0},{"start_s":238.64,"end_s":244.799,"text":"benefit from the OS adopting a more monolithic philosophy that doesn't have","speaker":null,"is_sponsor":0},{"start_s":242.72,"end_s":248.319,"text":"as much overhead, enabling higher performance for folks who are trying to","speaker":null,"is_sponsor":0},{"start_s":246.48,"end_s":252.799,"text":"squeeze as many frames as possible out of their rigs. Picture orange juice, but","speaker":null,"is_sponsor":0},{"start_s":250.879,"end_s":257.519,"text":"much less tasty. Of course, no matter how you design a kernel, crashes can and","speaker":null,"is_sponsor":0},{"start_s":255.439,"end_s":261.68,"text":"do happen. If you've ever heard the term kernel panic, this means the system has","speaker":null,"is_sponsor":0},{"start_s":259.84,"end_s":266.479,"text":"entered some kind of unstable or undefined state and the colonel decides","speaker":null,"is_sponsor":0},{"start_s":263.919,"end_s":271.04,"text":"to just halt the system as the OS simply doesn't know what to do next. This is","speaker":null,"is_sponsor":0},{"start_s":268.56,"end_s":275.28,"text":"what often causes Windows blue screens. It's not because your computer hates","speaker":null,"is_sponsor":0},{"start_s":273.36,"end_s":279.36,"text":"you. But why can't the system, you know, just fix itself instead of needing a","speaker":null,"is_sponsor":0},{"start_s":277.6,"end_s":284.0,"text":"reboot? Well, error handling functionality in an OS like Windows has","speaker":null,"is_sponsor":0},{"start_s":281.52,"end_s":287.759,"text":"to be written for specific errors. So, if the system encounters an error it","speaker":null,"is_sponsor":0},{"start_s":285.68,"end_s":292.0,"text":"wasn't written to handle, you'll likely get a kernel panic. But one example of","speaker":null,"is_sponsor":0},{"start_s":290.08,"end_s":295.68,"text":"an error the Windows kernel is designed to handle is when your display driver","speaker":null,"is_sponsor":0},{"start_s":293.919,"end_s":299.44,"text":"crashes. You know how your screen goes blank, then it comes back up and you get","speaker":null,"is_sponsor":0},{"start_s":297.6,"end_s":303.68,"text":"a little notification saying the driver successfully recovered? That's a bit of","speaker":null,"is_sponsor":0},{"start_s":301.44,"end_s":307.039,"text":"kernel magic that took the developers a great deal of effort to write. So,","speaker":null,"is_sponsor":0},{"start_s":305.68,"end_s":311.6,"text":"remember that when you get a blue screen, please know your poor kernel is","speaker":null,"is_sponsor":0},{"start_s":309.44,"end_s":315.36,"text":"trying its hardest. It just has no idea what to do next. I mean, you wouldn't","speaker":null,"is_sponsor":0},{"start_s":313.44,"end_s":319.919,"text":"get mad at your dog for not being able to speak German, right? Unless it's a","speaker":null,"is_sponsor":0},{"start_s":317.199,"end_s":323.52,"text":"German Shepherd, in which case, jail. And you're definitely not going to","speaker":null,"is_sponsor":0},{"start_s":322.24,"end_s":326.96,"text":"jail because you watched this whole video. Wow, thanks so much. Hey, like","speaker":null,"is_sponsor":0},{"start_s":325.44,"end_s":331.039,"text":"the video if you liked it, dislike it if you disliked it. Check out our other videos. Comment below with video","speaker":null,"is_sponsor":1},{"start_s":329.44,"end_s":335.039,"text":"suggestions, and don't forget to subscribe and follow. Now, enjoy your","speaker":null,"is_sponsor":1},{"start_s":333.6,"end_s":338.12,"text":"freedom. Watch another video. All right, hang on.","speaker":null,"is_sponsor":0}],"full_text":"When you hear the word kernel, you might think of popcorn chicken or popcorn chicken or the colonel's popcorn chicken. But you might have also come across the same word in a computing context with folks talking about the Linux kernel or Windows kernel. What the heck is it? The kernel is basically the heart of whatever operating system you're using. Although the kernel is a software component, it sits between your systems hardware and the rest of your OS and software. You see, user software such as your web browser or your favorite game doesn't talk directly to your hardware. Instead, the kernel serves as an intermediary. But why is this necessary? Well, one of the main functions of a kernel is to abstract away the physical differences between hardware setups. There are an endless number of possible hardware configurations in a PC or server. I mean, think of how many rigs you could build just from PC part picker lists. A kernel gives your other software a standardized surface area to interface with, making the differences between individual machines much less of an obstacle. As a more easily digestible analogy, kernels provide the low-level plumbing that your software hooks into. The pipes underneath your house might not be all that interesting, but they allow you to make tons of choices as to what you're going to hook them up to without caring whether it's a dishwasher, a jacuzzi, or that cool RGB shower head you found on Amazon. Well, like I'm going to see that and just ignore it. Another key function of the kernel is to provide security and stability. Allowing programs to talk to hardware in any way they wanted, could allow them to access data they aren't supposed to, which could lead to a system crash or data theft from a malicious process. But because programs have to interface with the system through the kernel, the kernel can prevent these sorts of shenanigans. If you've ever heard the term protected memory space, this is part of what we're talking about. Running programs get their own portion of RAM and can't access memory outside of that. thanks to the kernel. But of course, plenty of things can still go wrong. We'll tell you how and how kernels have been designed to prevent crashes right after we thank our sponsor, ODU. If you're looking to create a website, but lack the technical expertise, ODU is here to help. Building a website is quick and painless with ODO's open- source intuitive platform. Use simple yet comprehensive drag and drop elements to make an eye-catching and engaging page for your audience to interact with, all with no coding experience required. They've also recently introduced their own AI copywriter powered by Chat GPT. So, if you find yourself at a loss for words, you can let AI do the heavy lifting for you. Best of all, ODU's website e-commerce application is 100% free to use, comes with unlimited hosting, and they even pay for your domain name for the first year. So, visit the link below and start creating a website for free with ODU. Traditionally, kernels were designed in one of two main ways. Monolithic, meaning the kernel incorporates most of the main functions of the whole operating system, and micro kernel, in which the kernel handles more basic functionality, leaving more software, such as device drivers, running outside the kernel. Monolithic kernels tend to be higher performance and easier for programmers to work with, while micro kernels have the advantage of being able to kill problematic processes without bringing down the whole system. Now the Windows kernel was designed to be more of a micro kernel while the Linux kernel was more monolithic but these days both operating systems have moved towards a hybrid kernel model to try and incorporate the advantages of both design philosophies. For example, Linux is commonly found on servers that need as much uptime as possible. In other words, you don't want to reboot the whole system if there's an issue. So it makes sense that Linux has moved away from being more purely monolithic and has tried to become more modular. Meanwhile, in Windows land, gamers benefit from the OS adopting a more monolithic philosophy that doesn't have as much overhead, enabling higher performance for folks who are trying to squeeze as many frames as possible out of their rigs. Picture orange juice, but much less tasty. Of course, no matter how you design a kernel, crashes can and do happen. If you've ever heard the term kernel panic, this means the system has entered some kind of unstable or undefined state and the colonel decides to just halt the system as the OS simply doesn't know what to do next. This is what often causes Windows blue screens. It's not because your computer hates you. But why can't the system, you know, just fix itself instead of needing a reboot? Well, error handling functionality in an OS like Windows has to be written for specific errors. So, if the system encounters an error it wasn't written to handle, you'll likely get a kernel panic. But one example of an error the Windows kernel is designed to handle is when your display driver crashes. You know how your screen goes blank, then it comes back up and you get a little notification saying the driver successfully recovered? That's a bit of kernel magic that took the developers a great deal of effort to write. So, remember that when you get a blue screen, please know your poor kernel is trying its hardest. It just has no idea what to do next. I mean, you wouldn't get mad at your dog for not being able to speak German, right? Unless it's a German Shepherd, in which case, jail. And you're definitely not going to jail because you watched this whole video. Wow, thanks so much. Hey, like the video if you liked it, dislike it if you disliked it. Check out our other videos. Comment below with video suggestions, and don't forget to subscribe and follow. Now, enjoy your freedom. Watch another video. All right, hang on."}