- 授权协议: Apache
- 开发语言: C/C++
- 操作系统: 跨平台
- 软件首页: https://github.com/tylertreat/chan
- 软件文档: https://github.com/tylertreat/chan
- 官方下载: https://github.com/tylertreat/chan
软件介绍
chan 是纯 C 实现的 Go 的 Channels,示例代码:
#include <pthread.h>
#include <stdio.h>
#include "chan.h"
chan_t* chan;
void* ping()
{
// Send blocks until receiver is ready.
chan_send(chan, "ping");
return NULL;
}
int main()
{
// Initialize unbuffered channel.
chan = chan_init(0);
pthread_t th;
pthread_create(&th, NULL, ping, NULL);
// Receive blocks until sender is ready.
void* msg;
chan_recv(chan, &msg);
printf("%s\n", msg);
// Clean up channel.
chan_dispose(chan);
}
Java in a Nutshell, 6th Edition
Benjamin J Evans、David Flanagan / O'Reilly Media / 2014-10 / USD 59.99
The latest edition of Java in a Nutshell is designed to help experienced Java programmers get the most out of Java 7 and 8, but it's also a learning path for new developers. Chock full of examples tha......一起来看看 《Java in a Nutshell, 6th Edition》 这本书的介绍吧!
