Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jan 2000 21:57:42 -0500 (EST)
From:      scip7050@programmer.net
To:        smp@FreeBSD.org
Subject:   kernel thread issue
Message-ID:  <0001222157425P.27824@weba1.iname.net>

next in thread | raw e-mail | index | archive | help
Hi!

I have some questions which I would like some kernel hackers could answer me.

First,
Why kernel thread cannot be spawned out for SMP case?
The comment written in kern_fork.c said that "cannot have same PTD on both cpus, the PTD needs to be  move out of PTmap and be per-process". Could anyone explain on this comment?

Second,
As I know that most kernel design to support kernel thread, will have to explicitly define another 'thread' data structure and try to put scheduling related information and hardware PCB and others to the thread structure.
It seems that if the kernel is designed in this way to support the kernel thread, it makes things more explicitly defned.
For instance, Solaris 2.x can even use the kernel thread to schedule interrupt handler in certain case. Hence it makes the kernel fully preemptible. The question is what will be the impact to the kernel if thread data structure is added in and used as the fundamental active scheduling objects?

Thanks.

Regards,
NgCW

----------------------------------------------------------------
Get your free email from AltaVista at http://altavista.iname.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0001222157425P.27824>