using System;using System.ServiceProcess;using
System.Diagnostics;using System.Threading;namespace ServiceControllerSample{
class Program { ...
分类:
其他好文 时间:
2014-05-28 04:09:58
阅读次数:
189
Managing Threading Errors with Intel? Parallel
Inspector XE________________________________________________...
分类:
编程语言 时间:
2014-05-27 17:43:12
阅读次数:
298
转自:http://www.justsoftwaresolutions.co.uk/threading/multithreading-in-c++0x-part-3.html是个just的c++库。和c11很像。用成员函数来作线程函数,需要传入额外的对象值。如果需要传入参数,接在头两个参数后面。用引...
分类:
编程语言 时间:
2014-05-27 00:09:06
阅读次数:
335
1 using System; 2 using System.Collections.Generic;
3 using System.Linq; 4 using System.Text; 5 using System.Threading; 6 using
System.Runtime.Remoti....
分类:
编程语言 时间:
2014-05-26 09:07:50
阅读次数:
270
1 # -*- coding:utf-8 -*- 2 import time 3 import
pymongo 4 from threading import Thread 5 from Queue import Queue 6 7 start =
time.time() 8 9 f = o...
分类:
编程语言 时间:
2014-05-26 07:25:25
阅读次数:
311
1 声明 2 System.Windows.Threading.DispatcherTimer
_MessageControler; 3 4 //刷新 5 _MessageControler = new
System.Windows.Threading.Dispatch...
using System;using System.Collections;using
System.Collections.Generic;using System.Linq; using System.Text;using
System.Threading.Tasks;namespace Con...
分类:
其他好文 时间:
2014-05-25 14:55:16
阅读次数:
160
Pexpect模块:http://www.ibm.com/developerworks/cn/linux/l-cn-pexpect1/
ConfigParser模块:http://blog.chinaunix.net/uid-25890465-id-3312861.html
logging模块:http://kenby.iteye.com/blog/1162698
threading模块...
分类:
编程语言 时间:
2014-05-22 22:38:36
阅读次数:
358
在开发多线程的程序的时候接触了.NET里面的自旋。这个自旋可以将线程暂停指定的时间,而使用Sleep的话,则是让线程执行无意义的内耗循环。
如下图:
Threading.Thread.Sleep 1000
------------[开始Sleep]---CPU在该线程上循环执行空指令,并且检查时间是否达到延时设定---------------[时间到达,接触延时,继续执行程序]---...
分类:
编程语言 时间:
2014-05-22 18:44:12
阅读次数:
415
using System;using System.Collections.Generic;using
System.IO;using System.Linq;using System.Text;using
System.Threading.Tasks;namespace 序列化反序列化{ c...
分类:
其他好文 时间:
2014-05-22 15:52:52
阅读次数:
264