首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Linux > OpenSolaris邮件列表中关于进程管理子系统的讨论
【标  题】:OpenSolaris邮件列表中关于进程管理子系统的讨论
【关键字】:OpenSolaris
【来  源】:http://blog.chinaunix.net/article.php?articleId=35445&blogId=768

OpenSolaris邮件列表中关于进程管理子系统的讨论


转载自: OpenSolaris: code

Process Management Subsystem

saravn02        

Hi,
I would like to know whats the logical order to be studied in the code to know all about process management, lwp's, kernel threads and stuff..
Also i would like to know the scheduling aspect as well.
Help is appreciated.
Thanks
Jay

eschrock     

On Tue, Jul 12, 2005 at 09:20:16AM -0700, Saravanan Jayakumar wrote:
> Hi,
> I would like to know whats the logical order to be studied in the code to know all about process management, lwp's, kernel threads and stuff..
> Also i would like to know the scheduling aspect as well.
> Help is appreciated.
> Thanks
> Jay

The best high-level discussion is found in Jim Mauro and Rich
McDougall's book "Solaris Internals" (http://www.solarisinternals.com).
Though slightly out of date (they are working on a 2nd edition), the
kernel abstractions are the same.

To get started in the code, check out the files 'proc.h', 'thread.h' and
'klwp.h' in usr/src/uts/common/sys. A process (proc_t) is a collection
of threads (kthread_t), and each thread may or may not have an lwp
(klwp_t) attached. All userland threads have an associated LWP; kernel
threads do not. The userland implementation has gone through several
iterations over the past few releases, but is now a 1-to-1 mapping
between kernel threads and userland LWPs.

For scheduling, check out 'usr/src/uts/common/disp/disp.c', which is the
heart of the dispatcher, reponsible for thread scheduling.

Hope that helps. We could probably do with an "understanding the
Solaris process model" somewhere on opensolaris.org, but AFAIK such a
doc has yet to be written.

- Eric

--
Eric Schrock, Solaris Kernel Development.
_______________________________________________
opensolaris-code mailing list
opensolaris-code at opensolaris dot org
https://opensolaris.org:444/mailman/listinfo/opensolaris-code


7月27日:Longhorn Beta 1发布:【上一篇】
EDI老磁盘柜升级历险:【下一篇】
【相关文章】
  • OpenSolaris北京用户组的第一次活动
  • 【随机文章】
  • Linux 2.4 iptables MAC地址匹配绕过漏洞
  • 目录,文件操作详谈1
  • 从2G到3G演进的中介技术GPRS
  • 如何升级/编译Linux内核
  • 如何在注册表中注册BDE
  • MyEcplise+struts+hibernate
  • ActionScript
  • 正则表达示运用
  • 还记得电视剧《上海一家人》吗?
  • 轻松制作SCO UNIX系统备份
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.