线程同步技术:
原子锁
临界区(段)
互斥
事件
信号量(线程示例时已经使用过)
可等候定时器
使用范围:原子锁
效率: 原子锁>临界区(用户态)>互斥(内核态)
一般用临界区。
//等候多个信号
DWORD WaitForMultipleObjects(
DWORD nCount, // number of han...
分类:
编程语言 时间:
2014-07-29 13:14:26
阅读次数:
295
在公司的实际办公网中,因为出口IP只有一个,要实现对外提供服务的话就必须得做端口映射,如果有多个服务要对外开放的话,这只能通过映射不同端口来区分,这在实际使用过程中非常的痛苦(记忆困难、一一对应关系也没有规律、访问的时候还得加端口),这个痛苦的问题用表格的形式来形象的描述如下:
Public IP
Public Port Number
Internal...
分类:
其他好文 时间:
2014-07-29 13:02:37
阅读次数:
350
Description An IPv6-address is a 128-bit number. For convenience, this number is recorded in blocks of 16 bits in hexadecimal record, the blocks ar...
分类:
其他好文 时间:
2014-07-29 12:15:46
阅读次数:
289
转自:http://www.cnblogs.com/dolphinX/p/3280340.htmlJavaScript是面向对象的语言,使用”.”操作符可以访问对象的属性和方法,而对于基本类型(null, undefined, bool, number, string)应该是值类型,没有属性和方法,...
分类:
编程语言 时间:
2014-07-29 12:06:46
阅读次数:
248
--建表语句create table student(id number(9),name varchar2(64),age number(5));create table class(id number(9),name varchar2(64),teacherid number(9),student...
分类:
数据库 时间:
2014-07-29 11:55:16
阅读次数:
172
这是一个循环操作,如果重数太多,只能递归搜索,不满足条件return 或者else,刚才出错了public class Solution { private String letters[] = {"","","abc", "def", "ghi", "jkl", "mno", "pqr...
分类:
其他好文 时间:
2014-07-29 11:08:26
阅读次数:
233
题目:DescriptionYou've decided to carry out a survey in the theory of prime numbers. Let us remind you that a prime number is a positive integer that ha...
分类:
其他好文 时间:
2014-07-29 10:25:58
阅读次数:
395
在用Qt开发应用程序时有时候需要将float类型转换为unsigned short类型的。如果进行强制类型转换,那么会出现精度损失的问题,使数据变得不正确。那么可以通过先将float类型的转换为QString类型的,QString sNum = QString::number(fNum);然后调用s...
分类:
其他好文 时间:
2014-07-28 23:47:04
阅读次数:
418
1.for循环语句实例1.1 最基本的for循环#!/bin/bashfor x in one two three fourdo echo number $xdone注:"for" 循环总是接收 "in" 语句之后的某种类型的字列表。在本例中,指定了四个英语单词,但是字列表也可以引用磁盘上的文件,甚...
分类:
其他好文 时间:
2014-07-28 19:10:04
阅读次数:
307
CR CREATE?TABLE?USERS.TBL_TEST
(
ID????NUMBER,
NAME??VARCHAR2(100?BYTE),
PID???NUMBER??????????????????????????????????DEFAULT?0
...
分类:
数据库 时间:
2014-07-28 16:58:05
阅读次数:
270