sometimes my ram usage is really high with no programs open and i see that its kernal task thats doing this.
when i restart my computer its fine but i wanna know what this is and why this keeps happening
The kernel is the Core of the OS, and allows the software to interact with the hardware. All UNIX/Linux systems are built on solid kernels, and the Mach Micro-kernel is what OS X uses.
I noticed a lot of pageouts - how long was the system on before you took the screenshot? A lot of programs keep their information stored in memory, regardless if it was recently shut down.