首页 > 试题广场 >

Would one classify Linux threa

[问答题]

Would one classify Linux threads as user-level threads or as kernel-level threads?Support your answer with the appropriate arguments.

推荐

Answer:Linux threads are kernel-level threads.The threads are visible to the kernel and are independently scheduleable.User-level threads,on the other hand,are not visible to the kernel and are instead manipulated by user-level schedulers.In addition,the threads used in the Linux kernel are used to support both the thread abstraction and the process abstraction.A new process is created by simply associated a newly created kernel thread with a distinct address space,whereas a new thread is created by simply creating a new kernel thread with the

same address space.This further indicates that the thread abstaction is intimately tied into the kernel.

发表于 2018-05-05 21:04:36 回复(0)