Question:
What is Kernel-Level Threads?
Answer:
Kernel-level threads often are implemented in the kernel using several tables (each task gets a table of threads). In this case, the kernel schedules each thread within the timeslice of each process. There is a little more overhead with mode switching from user->kernel-> user and loading of larger contexts, but initial performance measures indicate a negligible increase in time. Source: CoolInterview.com
kernel thread is a process that always in kernal mode , it only accesses kernel address spaces , manageing kernel activities that need to managed on an ongoing basis .(and not waiting for an interrupt or system call) Source: CoolInterview.com
Answered by: Ajay | Date: 1/26/2010
| Contact Ajay
Consider process p1 has 5 threads. In Ready Queue 6 entities will be there. 6 entities = 1 for process + 5 for threads. These threads are created and managed by Operating System. In Kernel Level Threads Developer can't decide the sharing(means which thread has to share how much % of time). Some standards will be there in kernel.According those standards that sharing will be decided.
So, single thread is one entity in Kernel.
If we have multi core system, then different threads can run on different processors. Source: CoolInterview.com
Answered by: Ravi Kishore | Date: 5/6/2010
| Contact Ravi Kishore
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|