分为几个模块 EventLoop、TcpServer、Acceptor、TcpConnection、Channel等
对于EventLoop来说:
他只关注里面的主驱动力,EventLoop中只关注poll,这类系统调用使得其成为Reactor模式,EventLoop中有属于这个loop的所有Channel,这个loop属于哪一个Server.
几个类存在的意义:
从应用层使用的角度...
分类:
其他好文 时间:
2014-10-30 00:27:40
阅读次数:
325
1.概述
使用Condition应在Lock的前提下,请先参见Java_并发线程_Lock、ReadWriteLock一文。在synchronized同步代码块中使用了obj的锁对象,然后通过obj.notify()和obj.wait()来配合处理多线程的问题。然而,同样lock和condition配合使用同样可以完成同样的功能,condition只有配合lock使用才有意义,只不过lock...
分类:
编程语言 时间:
2014-10-29 10:48:50
阅读次数:
250
Mat OpenCV C++ n-dimensional dense array class The class Mat represents an n-dimensional dense numerical single-channel or multi-channel array. It can...
分类:
其他好文 时间:
2014-10-29 10:42:31
阅读次数:
287
Channels are a typed conduit through which you can send and receive values with the channel operator,<-.ch <- v // Send v to channel ch.v := <-ch ...
分类:
其他好文 时间:
2014-10-29 01:49:32
阅读次数:
155
Channels can bebuffered. Provide the buffer length as the second argument tomaketo initialize a buffered channel:ch := make(chan int, 100)Sends to a b...
分类:
其他好文 时间:
2014-10-29 01:43:40
阅读次数:
142
CREATE EVENT SESSION [sql_query_tracing] ON SERVER ADD EVENT sqlos.wait_info( ACTION(sqlos.scheduler_id,sqlserver.client_app_name,sqlserver.client_con...
分类:
数据库 时间:
2014-10-28 17:07:21
阅读次数:
281
channel栏目标签默认有调用顶级栏目(top)、子栏目(son)、同级栏目(self),那想获取交叉栏目的名称和链接怎么获取呢?其实在原来的代码上改一下就可以了。下面是具体代码。打开文件channel.lib.php:在搜索:$topid = $refObj->TypeLink->TypeInf...
分类:
其他好文 时间:
2014-10-28 15:11:20
阅读次数:
162
如何屏蔽14信道[SOLUTION]alps\mediatek\custom\{ProjectName}\cgen\cfgdefault\CFG_WIFI_Default.hWIFI_CFG_PARAM_STRUCT stWifiCfgDefault ={0x0103, /* Own Version...
分类:
其他好文 时间:
2014-10-28 15:06:33
阅读次数:
305
第七题地址:http://www.pythonchallenge.com/pc/def/channel.html
根据提示,我们看到,试一试之后发现可以把channel.html改成channel.zip,然后下载得到一个zip文件。
打开zip文件,其中的readme.txt,我们得到如下的提示
welcome to my zipped list.
hint1: star...
分类:
编程语言 时间:
2014-10-28 13:59:25
阅读次数:
280