- 博客(1)
- 资源 (11)
- 收藏
- 关注
原创 signed unsigned 的区别
没区别的:1,赋值操作2,加,减,乘,除 有区别的,是指unsigned 会将内存的值考虑为unsigned:1,比较 >,2,数值扩展,比如8位扩展为更多位, 在c++中,有符号数的右移是算术移位(即新的最左位根据最高位是否是1来决定是1还是0, 0x80>>1 = 0xc0),无符号为逻辑移位(最左边用0补, 0x80 >> 0x40)
2010-08-06 17:41:00 610
Python源码剖析
在最高的层次上,Python的整体架构可以分为四个主要的部分,整个架构如图1所示。在左边,是Python提供的大量的模块,库以及用户自定义的模块。比如在执行import os时,这个os就是Python内建的模块,当然用户还可以通过自定义模块来扩展Python系统。在本系列文章中,我们不会对这一部分进行过多的考察。
2009-06-19
understanding the linux kernel 3rd
经典linux书籍
In order to thoroughly understand what makes Linux tick and why it works so well on a wide variety of systems, you need to delve deep into the heart of the kernel. The kernel handles all interactions between the CPU and the external world, and determines which programs will share processor time, in what order. It manages limited memory so well that hundreds of processes can share the system efficiently, and expertly organizes data transfers so that the CPU isn't kept waiting any longer than necessary for the relatively slow disks.
2009-06-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人