- 博客(8)
- 资源 (7)
- 收藏
- 关注
转载 [转]多核的软肋:阿姆达定律
原文地址:http://apple4.us/2008/12/amdahl-law.html作者:Rio在过去的很多年里,软件性能的提升很大程度上源自处理器速度的增长。软件工程师面对客户抱怨说软件运行得太慢的通常回答是:升级你的系统。然而现在由于处理器速度逐渐逼近物理极限,继续提高处理器的时钟速度会导致发热量显著增加,甚至核心熔化。江郎才尽的硬件工程师想出了一个能保住自己饭碗的办法:既然不能提高单个
2008-12-31 10:31:00 1320
原创 Perl Notes(I)
Part I Programming Perl1 Perl Data Types1.1 Funny CharactersTypeCharacterExampleIs a name for:Scalar$$centsAn individual value (number or string)Array@@large
2008-12-29 09:17:00 1118
原创 由服务器名字(Host name)获得IP地址
一下代码可以根据host name获得IP地址:#include #include #include #include #include int main(int argc,char **argv){ struct hostent *hptr; struct in_addr *in_addr_ptr; char *ptr,**pptr,**listptr,*addr_ptr;
2008-12-24 22:19:00 2158
原创 几段耐人寻味的视频
Steve Jobs演讲的伟大时刻:http://item.feedsky.com/~feedsky/apple4us/~6348789/150544877/4456728/1/item.htmlGoogle的超轻型操作系统:http://live.csdn.net/Issue638/livePlay.aspxMIT的智能画板:http://live.csdn.net/Issue642/LiveP
2008-12-19 14:06:00 491
转载 Named Pipe
This page is a copy of http://developers.sun.com/solaris/articles/named_pipes.html.Introduction to Interprocess Communication Using Named Pipes Print-friendly VersionBy Faisal Faruqui, July 2002 Cont
2008-12-16 23:38:00 1128
原创 return (((ulong*)(x))[-1])
看到一个函数,定义如下: #include "u.h"#include "lib.h"ulonggetcallerpc(void *x){ return (((ulong*)(x))[-1]);}((ulong*)(x)) 将void* 的x针针强制转换为 ulong* 此时可以理解为x指向一个ulong类型的数组 [-1] : 表示去x前面的那个元素 上面的代码等价与 ulong px=
2008-12-04 14:06:00 705
原创 NULL Pointer Bugs
NULL Pointer BugsA NULL character pointer is NOT the same as a pointer to a NULL string. In Solaris, the following program will lead to a "Segmentation Fault".#include #include int main(){ char *st
2008-12-03 20:54:00 555 1
原创 Korn Shell Notes(V)
19. Input/Output Commands19.1 Escape CharactersThe /c escape character causes the trailing newline to be dropped from the output. It is often used to create prompts. $ print "Enter choice: /c"
2008-12-01 22:48:00 683
将多个Excel文件批量导入某个Excel文件中去的VBA宏
2011-07-11
Exploring Expect(英文完全版)
2009-09-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人