Re: Difference between a kthread and an ordinary process.
- From: Scott Long <scottl@xxxxxxxxxx>
- Date: Tue, 24 Jan 2006 07:53:19 -0700
Pranav Peshwe wrote:
Hello, When a kthread is created using the kthread_create (9) function, i found out that a new instance of struct proc is created and allocated for the thread just as in case of a creation of a new process.Also, the thread is assigned a pid as in the case of a process. What is the difference between a kernel thread and a normal process created using fork ? except the address space sharing with swapper and kernel mode execution of the kthread. Is a kthread effectively just a process always running in kernel mode ?
That is exactly what a kthread is. There is some work in process to make them true threads within one or more processes.
Scott _______________________________________________ freebsd-hackers@xxxxxxxxxxx mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Difference between a kthread and an ordinary process.
- From: Julian Elischer
- Re: Difference between a kthread and an ordinary process.
- References:
- Difference between a kthread and an ordinary process.
- From: Pranav Peshwe
- Difference between a kthread and an ordinary process.
- Prev by Date: Re: Difference between a kthread and an ordinary process.
- Next by Date: Re: Weird PCI interrupt delivery problem (resolution, sort of)
- Previous by thread: Re: Difference between a kthread and an ordinary process.
- Next by thread: Re: Difference between a kthread and an ordinary process.
- Index(es):