What are the primary differences between kernel space and user space in Linux, and why does it matter for real-time applications?