- 授权协议: MIT
- 开发语言: C/C++
- 操作系统: 跨平台
- 软件首页: http://millc.org/
- 软件文档: http://millc.org/documentation.html
软件介绍
MILL 为 C 语言提供了 Go 语言风格的并发控制。
示例代码:
#include <stdio.h>
#include <mill.h>
void worker(int count, const char *text, chan ch) {
int i;
for(i = 0; i != count; ++i) {
printf("%s\n", text);
musleep(10000);
}
chs(ch, int, 0);
chclose(ch);
}
int main() {
chan ch1 = chmake(int, 0);
go(worker(4, "a", chdup(ch1)));
chan ch2 = chmake(int, 0);
go(worker(2, "b", chdup(ch2)));
choose {
in(ch1, int, val):
printf("coroutine 'a' have finished first!\n");
in(ch2, int, val):
printf("coroutine 'b' have finished first!\n");
end
}
chclose(ch2);
chclose(ch1);
return 0;
}
Perl语言编程
[美] Larry Wall、Tom Christiansen、Jon Orwant / 何伟平 / 中国电力出版社 / 2001-12 / 129.00元
这不仅仅是一本关于Perl的书籍,更是一本独一无二的开发者自己介绍该语言及其文化的书籍。Larry Wall是Perl的开发者,他就这种语言的未来发展方向提出了自己的看法。Tom Christiansen是最早的几个拥护者之一,也是少数几个在错综复杂的中游刃有余的人之一。Jon Orwant是《Perl Journal》的主编,该杂志把Perl社区组合成了一个共同的论坛,以进行Perl新的开发。一起来看看 《Perl语言编程》 这本书的介绍吧!
