1.The level of spin lock required for kernel operation may be different in different environments, so separate the kernel from the application spin lock.
2.Optimize the lifecycle management of kThreads by creating a lifecycle for the runtime and releasing it in cleanup (instead of exit).
1.Was not satisfied with the original kernel object implementation, so it was refactored.
2.Due to the structure, the rest also needs to be reconstructed.