摘要: ZZ from here : ask what kernel ring buffer is A few days ago I started thinking that my linux education has halted. I didn't seem to be learning anything new, even though I fealt like a total linux newbie. Then I reminded myself "Everything in linux is a file", so I said to myself: &qu 阅读全文
posted @ 2013-12-11 18:10 ridox 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 这本书是 Stanley B. Lippman于1996年所写,而最早的c++标准是ISO/IEC 14882:1998[18],即C++98。Chapter 1: Object Lessons1.1 类定义:包含普通函数,虚拟函数,静态函数;静态域和非静态域a simple object module : 这个模型中,一个对象就是一个slot的序列,一个slot代表一个成员,排列顺序与声明顺序相同。所有成员都通过指针访问, 这引入了指针--成员的概念。a table-driven object module: 通过一个数据成员表直接保存数据,一个成员函数表保存所有成员函数的引用。c++ ob 阅读全文
posted @ 2013-12-05 12:06 ridox 阅读(263) 评论(0) 推荐(0) 编辑
摘要: Greg Mattes推荐的介绍并发编程的书Java Concurrency in Practicevolatile 的语义:“… the volatile modifier guarantees that any thread that reads a field will see the most recently written value.”- Josh Bloch这意味着,对于被声明为volatile的域,当写操作发生时,所有的读操作都会看到这个change,既然有局部缓存存在。当一个域被synchronized 方法或代码块 guarded 的时候,就没必要把一个域声明为volat 阅读全文
posted @ 2013-11-22 20:03 ridox 阅读(178) 评论(0) 推荐(0) 编辑
摘要: execution engine:运行时栈current stack frame主要保存了 local variable table, operand stack, dynamic linking, return address and some other additional info。方法调用(确定调用哪个方法的过程):这类加载阶段就能够确定调用版本的符号应用,直接转化为方法的直接引用(方法在内存中的入口地址),这其中有四类方法:静态方法、私有方法、实例构造器 和 父类方法,这类方法也统称为非虚方法,其他的方法都称为虚方法(除去final修饰的方法)。静态分派(Static dispat 阅读全文
posted @ 2013-11-03 22:15 ridox 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 这一章详细说明在一个program执行时,发生的activities。 它根据JVM和组成program的类、接口、实例的生命周期 组织。 一个JVM从加载一个特定的类并调用它的main方法开始启动。 12.1 给出了loading, linking, initialization的大致轮廓,接下来几个section 详细介绍。 这一章还给出了实例创建过程和类实例终结的详细规范,最后谈到类的卸载和program的退出。12.1 Virtual Machine Start-upjava Test reboot Bob Dot Enzo // Test is a pulibc class nam. 阅读全文
posted @ 2013-10-24 19:33 ridox 阅读(287) 评论(0) 推荐(0) 编辑