The kernel is the core of an operating system. It is responsible for low-level tasks such as managing memory, scheduling tasks, and communicating with hardware. An example of a kernel is the Linux kernel.
An operating system is a collection of programs and utilities that manage the hardware and software resources of a computer. It provides an interface between the user and the hardware. An example of an operating system is Windows 10.