1. 网络中进程之间如何通信进 程通信的概念最初来源于单机系统。由于每个进程都在自己的地址范围内运行,为保证两个相互通信的进程之间既互不干扰又协调一致工作,操作系统为进程通信提供了相应设施,如UNIX BSD有:管道(pipe)、命名管道(named pipe)软中断信号(signal)UNIX s...
分类:
系统相关 时间:
2014-11-30 19:59:50
阅读次数:
331
1、使用函数signal()和sigaction().
2、使用信号集函数组。...
分类:
系统相关 时间:
2014-11-30 16:57:14
阅读次数:
326
转:http://www.nbtarena.com/Html/soft/201308/2429.htmlCondition的概念大体实现流程 I.初始化状态 II.await()*作 III.signal()*作3个主要方法 Condition的数据结构 线程何时阻塞和释放 await(...
分类:
其他好文 时间:
2014-11-30 16:39:11
阅读次数:
231
生产者和消费者是多线程经典的问题,生产者和消费者问题的核心是同步的问题,同步问题的核心是要保证同一个资源被多个线程并发访问时的完整性,常用的方法是采用信号或加锁机制,保证资源在任一时刻只能被一个线程访问。这一问题用java来实现的话主要有4种方式。1.wait()/notify();2.await()/signal(); 3.blockingQuene 4.PipedInputStream/pip...
分类:
编程语言 时间:
2014-11-29 20:16:12
阅读次数:
202
一,简介
Signal 是微软支持的一个运行在 Dot NET 平台上的 html websocket 框架。它出现的主要目的是实现服务器主动推送(Push)消息到客户端页面,这样客户端就不必重新发送请求或使用轮询技术来获取消息。
二,实现机制
SignalR 的实现机制与 .NET WCF 或 Remoting 是相似的,都是使用远程代理来实现。在具体使用上,有两种不同目的的接...
分类:
Web程序 时间:
2014-11-29 16:04:09
阅读次数:
240
A number of circuits, such as level detectors and AM demodulators, benefit from a rectifier with a low offset voltage. Silicon diodes have an offset o...
分类:
其他好文 时间:
2014-11-28 15:50:42
阅读次数:
200
A standard technique for generating analog voltages using µCs is to use a PWM output and filter the signal with a simple RC filter (Figure 1). The vol...
分类:
其他好文 时间:
2014-11-28 15:48:52
阅读次数:
160
The easy way to clamp a signal to a given value is to use two zener diodes, connected back-to-back. This method has several disadvantages. The accurac...
分类:
其他好文 时间:
2014-11-28 15:45:51
阅读次数:
158
In new mixed-voltage systems, it is often necessary to level-shift a control signal from a high level to a low level. An open-drain device, such as th...
分类:
其他好文 时间:
2014-11-28 14:16:23
阅读次数:
206
如何在调试内核时,同时可以调试应用程序的做法:(cskygdb) cContinuing.^CProgram received signal SIGINT, Interrupt.default_idle () at arch/csky/kernel/process.c:8383 __asm__ _....
分类:
数据库 时间:
2014-11-27 12:28:38
阅读次数:
428