注意,请不要被我误导,我没有看其他资料,这是我自己分析的,有些可能是不对的"DestroyJavaVM" prio=6 tid=0x00316800 nid=0x448 waiting on condition [0x00000000..0x00a0fd4c]java.lang.Thread.Sta...
分类:
编程语言 时间:
2014-08-25 11:29:24
阅读次数:
216
1. Package ControlGetPackage Control here.2. Theme - Phoenix and Flatland(扁平)If Sublime Text 2 is a highly tuned race car, then this plugin is the fl....
分类:
Web程序 时间:
2014-08-23 05:39:39
阅读次数:
647
Description
We are given a rooted tree of n vertices. The vertices are to be labeled with numbers
1, 2,..., n so that each label is unique and the heap condition holds, i.e. the label of any verte...
分类:
其他好文 时间:
2014-08-22 17:53:39
阅读次数:
264
看API文档介绍几个方法:JDK1.5中提供了多线程的升级解决方案: 特点:1.将同步synchronized显示的替换成Lock 2.接口Condition:Condition替代了Object监视器方法(wait、notify、notifyAll),分别替换成了await(),signal() ...
分类:
编程语言 时间:
2014-08-22 10:40:36
阅读次数:
280
poj 2274 The Race(逆序数+线段树)...
分类:
其他好文 时间:
2014-08-21 21:11:04
阅读次数:
290
题目:编写一个程序,开启3个线程,这3个线程的ID分别为A、B、C,每个线程将自己的ID在屏幕上打印10遍,要求输出结果必须按ABC的顺序显示;如:ABCABC….依次递推。
采用C++11实现:
[cpp]
view plaincopyprint?
#include
#include
#include
#include
using names...
分类:
编程语言 时间:
2014-08-21 17:16:04
阅读次数:
219
题目:子线程循环 10 次,接着主线程循环 100 次,接着又回到子线程循环 10 次,接着再回到主线程又循环 100 次,如此循环50次,试写出代码。
[cpp]
view plaincopyprint?
#include
#include
#include
#include
using namespace std; mutex m; co...
分类:
编程语言 时间:
2014-08-21 15:02:14
阅读次数:
218
分享JUC中的Condition的比较少见,我见了大部分文章都是讲其中的一个例子BoundedBuffer。今天先从Condition接口的几个方法说起,然后在把BoundedBuffer搞死锁了。来看看Condition在使用的时候需要注意什么。 源代...
分类:
其他好文 时间:
2014-08-18 18:56:03
阅读次数:
305
题目链接:点击打开链接
1038 - Race to 1 Again
PDF (English)
Statistics
Forum
Time Limit: 2 second(s)
Memory Limit: 32 MB
Rimi learned a new thing about integers, whic...
分类:
其他好文 时间:
2014-08-18 01:35:13
阅读次数:
283
阐述了自己对 Java 语言规范中内存模型的理解。...
分类:
编程语言 时间:
2014-08-17 22:53:42
阅读次数:
245