I'm a little confused about kernel space, userspace, kernel thread, user thread. Whether you can think that kernel threads are supported by the kernel is running in kernel space?
Java,
`Thread t = new Thread(new Runnable...)`,
This thread named 't' is called a lightweight process (kernel thread) in Linux. Is it running in the kernel state?
tis a Java object, and it is associated with a user-space thread created by the kernel.titself is not a lightweight process in Linux, and a lightweight process is not a kernel thread. - user207421tis a lightweight process in Linux. I mean ‘lightweight process (kernel thread)’ means that the lightweight process is scheduled by the kernel, so it is a kernel-level thread. - K.Ray