Simple, Fast, and Practical Non-Blocking and Blocking Concurrent...
2009-12-29 16:44:50
查看原文
Non-Blocking Concurrent Queue Algorithm
structure pointer_t {ptr: pointer to node_t, count: unsigned integer}
structure node_t {value: data type, next: pointer_t}
structure queue_t {H...
线程安全与可重入
2009-12-29 15:21:06
查看原文
今天终于理解了这几个概念:线程安全、可重入函数、信号安全
可重入一定线程安全,反正则不一定。
The reentrancy is a stronger concept than thread-safety, because the second attempt to perform the opera...
非诺依曼化
2009-12-23 14:54:39
查看原文
传统的冯·诺依曼型计算机从本质上讲是采取串行顺序处理的工作机制,即使有关数据巳经准备好,也必须逐条执行指令序列。而提高计算机性能的根本方向之一是并行处理。因此,近年来人们谋求突破传统冯·诺依曼体制的束缚,这种努...
最简单的erlang分布式编程实例
2009-12-15 15:34:36
查看原文
只需要erlang运行环境,无需任何其他配置!
(deepblue)> erl -setcookie asdf -sname ww
N = node(),
spawn_link(ll@deepred, fun() -> {ok, F} = file:open("/tmp/ww.txt", write),
io:format...
mochiweb 不一定每个请求是一个新的process
2009-12-13 13:16:28
查看原文
今天试了一下mochiweb,这个东东的文档实在是少的可怜,推荐一个不错的tutorial:
http://erlang-china.org/start/mochiweb_intro.html
做了一个简单的comet测试,在firefox下浏览时发现每个http请求处理...
__BEGIN_DECLS, __END_DECLS in glibc
2009-12-12 10:32:07
查看原文
可以在c++程序里直接include unistd.h, mman.h等头文件,而不用extern "C",是因为这些header文件里已经做了对c++的支持。
在/usr/include/sys/cdefs.h里:
/* C++ needs to know that types and declar...
从so文件逆向获得函数原型
2009-12-10 15:46:32
查看原文
nm --demangle libsuperman.so
已有 0 人发表留言,猛击->>这里<<-参与讨论
JavaEye推荐
* 上海:高薪诚聘Python开发人员
* 成都:月薪5千到1万招聘Java开发工程师
* 上海:...
Joe Armstrong介绍推销Bluetail/Erlang的秘诀
2009-12-10 14:14:28
查看原文
tell them its a PL.
use the word declarative (they might ask you what it means!).
use the word functional.
confuse them with measurements and facts.
claim you can do everything (you can’t...
so so
2009-12-10 13:42:50
查看原文
创建动态链接库:
g++ -shared -fPIC -o libsuperman.so superman.cpp
use shared libary in compile:
g++ a.cpp -L . -lsuperman (first add $home into /etc/ld.so.conf and execute ldconfig)
检查a.ou...
调用默认构造函数的形式
2009-12-03 17:42:43
查看原文
A a1;
A a2();
第一种is right;第二个实际上是做了函数原型的声明,名称为a2的函数,返回值类型为A。
(This syntax is so bad.)
参考:http://topic.csdn.net/t/20060716/16/4883699.html
...