//终止thread1线程 thread1.Abort();
//主线程挂起等待,直到thread1完全终止 thread1.Join();
//thread1线程已终止,主线程继续执行Abort执行后线程并没有立即结束,线程在被终止之前立即进入AbortRequested状态,所以才会有你遇到的问...
分类:
编程语言 时间:
2014-05-27 17:55:25
阅读次数:
406
Aggregate production is the basic raw material
for the building, only select those high standards and high qualified aggregate
to build a hundred year...
分类:
其他好文 时间:
2014-05-27 16:26:36
阅读次数:
257
1.数组转字符串var a, b;a = new Array(0,1,2,3,4);b =
a.join("-");2.字符串转数组var s = "abc,abcd,aaa";ss = s.split(",");3.数字转字符串
分类:
Web程序 时间:
2014-05-26 18:05:05
阅读次数:
292
-好软件的定义就是它的体积不大不小,功能不多不少,一切都是那么的恰到好处。 -Good
software is neither too big nor too small,neither too Complex nor too
Simple,everything is so right. +点击.....
分类:
其他好文 时间:
2014-05-26 00:54:15
阅读次数:
254
publicclassMyTabControl:TabControl{protected
override void OnMouseUp(MouseEventArgs
e){if(e.Button==System.Windows.Forms.MouseButtons.Right){for(int i...
分类:
其他好文 时间:
2014-05-26 00:33:42
阅读次数:
304
Given a list, rotate the list to the right
bykplaces, wherekis non-negative.For
example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.思路:这道...
分类:
其他好文 时间:
2014-05-26 00:06:39
阅读次数:
250
将另外一个线程join到当前线程,则需要等到join进来的线程执行完才会继续执行当前线程。package
Thread.join;class Sleeper extends Thread { private int duration; public
Sleeper(String name...
分类:
编程语言 时间:
2014-05-25 22:17:16
阅读次数:
363
View的getLeft, getRight, getTop,
getBottom方法得到的分别是相对于其父组件不同方向的距离网上找了张图说明:其中right和left的计算方法如下: right = left +
width; bottom = top + height;
分类:
其他好文 时间:
2014-05-25 18:51:01
阅读次数:
244
【题目】
Given a list, rotate the list to the right by k places, where k is non-negative.
For example:
Given 1->2->3->4->5->NULL and k = 2,
return 4->5->1->2->3->NULL.
【题意】
给定一个链表L,和非负数K,要求把链表的后k个节点移到链表前
【思路】
先将指针指向指向倒数第K个节点,然后...
分类:
其他好文 时间:
2014-05-25 18:20:06
阅读次数:
252
红黑树
红黑树是一种二进制查找树,但在每个节点上增加一个存储位表示节点的颜色,可以是red或black。通过对任何一条从根到叶子的路径上各个节点着色方式的限制,红黑树确保没有一条路径会比其他路径长出两倍,因而是接近平衡的。
树中灭个节点包含五个域,color,key,left,right 和p。如果某及诶但没有一个子节点或父节点,则该节点响应的指针域包含值NIL.我们将把这些NIL指向二叉查找...
分类:
其他好文 时间:
2014-05-25 10:27:17
阅读次数:
290