Developing a Multithreaded Kernel From Scratch! Course

Build a multitasking operating system and kernel with an interactive shell!

What you’ll learn

  • How to create a kernel from scratch
  • How to create a multi-tasking kernel
  • Learn how to handle malicious or problematic programs in your operating system. Terminating them if they misbehave.
  • How memory works in computers
  • The difference between kernel land, userland, and the protection rings that make up modern computing
  • Kernel design patterns used by the Linux kernel itself
  • You will learn all about virtual memory and how to map virtual addresses to physical addresses
  • You will learn how to make the kernel understand processes and tasks
  • Learn how to load ELF files
  • You will learn how to debug disassembled machine code
  • You will learn how to debug your kernel in an emulator with GDB.


  • You must know the C programming language
  • It is wise to have some basic knowledge of the assembly language
  • You should have a Linux operating system, free to install from the internet (We use Ubuntu in this course)


This course is designed to teach you how to create your very own multitasking operating system and kernel from scratch. It is assumed you have no experience in programming kernels and you are taught from the ground up.

Real Mode Development

Real mode is a legacy mode in all Intel processors that causes the processor to start in a legacy state, it performs as the old 8086 Intel processors did back in the way.
In the “Real Mode Development” section of the course we start by learning about the boot process and how memory works, we then move on to creating our very own boot loader that we test on our real machine! This boot loader will output a simple “Hello World!” message to the screen and we write this boot loader in purely assembly language.In this section, we also read a sector(512 bytes) from the hard disk and learn all about interrupts in real mode and how to create them.
This section gives you a nice taster into kernel development, without overwhelming you with information. You are taught the basics and enough about the legacy processors to be able to move forward to more modern kernel development further into this course.

Protected Mode Development

In this section, we create a 32-bit multi-tasking kernel that has the FAT16 filesystem. Our kernel will use Intel’s built-in memory protection and security mechanisms that allow us to instruct the processor to protect our kernel and prevent user programs from damaging it.
We create our own virtual filesystem layer that uses a design that is similar to the Linux kernel. This clever abstraction that will be taught to you was inspired by the instructor’s knowledge of writing Linux kernel drivers in his past.

Developing a Multithreaded Kernel From Scratch! Course

You are taught about the design of the FAT16 filesystem and how the FAT16 filesystem is broken down into clusters and that they can chain together. We then implement our very own FAT16 filesystem driver allowing files to be born!
We implement functionality for tasks and processes and write our own keyboard drivers.Memory management is essential in any operating system and kernel.
Let us not forget that we even create an ELF file loader, we will compile all our operating systems programs into ELF files and allow the loading of binary programs or ELF programs. ELF files contain a lot of information that describes our program for example where our program should be loaded into memory and the different sections of the program.
By the end of this course, you will have a fully functioning 32-bit multi-tasking kernel that can have many processes and tasks running at the same time. You will have a working shell that we can use as well.

Assembly language bonus

This is a bonus section designed to bring your assembly skills up to scratch should you struggle a little bit with the assembly language in this course. It’s however advised you come to this course with experience in assembly language, we do use it, and its importance. Never the less if you want to take a chance on this course with no assembly experience then this section will help point you in the right direction so you’re able to take what you learned and apply it to the kernel.
Taught by an expert that that has created Linux kernel modules professionally in the workplace.

Who this course is for:

  • Beginner kernel developers who want to learn how to create kernels

Last updated: 4/2021 | Size: 15 GB
Click to get:

Computer and Network Hacking Mastery: Practical Techniques
Computer and Network Hacking Mastery: Practical Techniques
Linux Foundation Certified System Administrator (LFCS)
Linux Foundation Certified System Administrator (LFCS)
Linux Privilege Escalation for Beginners
Linux Privilege Escalation for Beginners
Linux Command Line basics to Advance
Linux Command Line basics to Advance

No comments.

Add Commenent
reload, if the code cannot be seen