面向对象内核设计模式,第二部分

Object-oriented Design Patterns in the Kernel, Part 2
面向对象内核设计模式,第二部分
posted by Elv13 on Mon 27th Jun 2011 14:17 UTC
发表于:2011年6月27日 北京时间22:17

"In the first part of this analysis we looked at how the polymorphic side of object-oriented programming was implemented in the Linux kernel using regular C constructs. In particular we examined method dispatch, looked at the different forms that vtables could take, and the circumstances where separate vtables were eschewed in preference for storing function pointers directly in objects. In this conclusion we will explore a second important aspect of object-oriented programming - inheritance, and in particular data inheritance."
“在该分析(面向对象内核设计模式专题)的 第一部分,咱们看到了如何使用普通C结构体,在Linux内核实现面向对象编程的多态方面。特别地,咱们考察了方法调度,查看了虚函数表能够存在的不一样形式,以及为直接在对象内存储函数指针,单独的虚函数表被规避的情形。在 第二部分(推论部分),咱们将探索另一个面向对象编程重要的方面——继承,特别是数据继承。”
注:《面向对象内核设计模式》两部份内容(英文版)见 附件

相关文章
相关标签/搜索