转:http://www.nbtarena.com/Html/soft/201308/2429.htmlCondition的概念大体实现流程 I.初始化状态 II.await()*作 III.signal()*作3个主要方法 Condition的数据结构 线程何时阻塞和释放 await(...
分类:
其他好文 时间:
2014-11-30 16:39:11
阅读次数:
231
请【点击图片】到新链接看【原图】。不然博客自动缩小图,看不清图解。上面是用美少女万花镜来测试新版VNR翻译的如何,结果比我预料还要好。以前旧版根本比不上新版的。翻译非常准确。看了我上面的简易VNR图解,应该了解了怎样翻译了吧。接下来就是D.C.III.RX翻译。来看下翻译效果吧。最新版文本设置,其它...
分类:
其他好文 时间:
2014-11-28 20:03:43
阅读次数:
4681
Best Time to Buy and Sell Stock IIISay you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the...
分类:
其他好文 时间:
2014-11-28 13:59:05
阅读次数:
328
在 SQL Server 中,当数据库启动后,SQL Server 会为每个物理 CPU(包括 Physical CPU 和 Hyperthreaded)创建一个对应的任务调度器(Scheduler),Scheduler 可以看作为逻辑 CPU(Logical CPU)。根据 Affinity Ma...
分类:
数据库 时间:
2014-11-28 08:43:38
阅读次数:
425
模拟,注意需要比较队头与当前时间的大小关系。 1 #include 2 #include 3 #include 4 5 #define MAXN 10005 6 #define INF 0xffffff 7 8 typedef struct { 9 int i, t;10 } no...
分类:
其他好文 时间:
2014-11-28 06:15:12
阅读次数:
206
题目链接http://acm.hdu.edu.cn/showproblem.php?pid=1028dp 就是背包的硬币问题。可以类似 HDU 1284#include#includeint main(void){ int i,j,k,n; int dp[125]; memset(...
分类:
其他好文 时间:
2014-11-25 23:17:08
阅读次数:
186
感谢孙潇楠前辈的总结,地址http://www.cnblogs.com/sunxiaonan/archive/2009/11/24/1609439.html例如: id name value 1 a pp 2 a pp 3 b iii 4 b pp 5 b pp 6 c pp 7 c pp 8 c ...
分类:
数据库 时间:
2014-11-25 17:57:31
阅读次数:
270
题目链接http://acm.hdu.edu.cn/showproblem.php?pid=2064这题很水,直接找递推方程 可知 F(n)=3*f(n-1)+2;代码#includeint main(void){ __int64 a[40]; int i,n; a[1]=2; ...
分类:
其他好文 时间:
2014-11-22 17:12:40
阅读次数:
179
Ignatius and the Princess III
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 13553 Accepted Submission(s): 9590
Problem Descriptio...
分类:
其他好文 时间:
2014-11-19 11:22:06
阅读次数:
169
Ignatius and the Princess III
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 13553 Accepted Submission(s): 9590
Problem Descriptio...
分类:
其他好文 时间:
2014-11-19 01:20:31
阅读次数:
247