码迷,mamicode.com
首页 >  
搜索关键字:threading    ( 3244个结果
并行编程之数据并行
本文来自:http://www.cnblogs.com/luminji/archive/2010/12/02/1894548.html任务并行库(TPL)是.NET Framework4版的System.Threading和System.Threading.Tasks命名空间中的一组公共类型和API...
分类:其他好文   时间:2015-05-29 17:40:34    阅读次数:93
46. C# -- 部分方法和部分类(partial)
C#2.0 可以将类、结构或接口的定义拆分到两个或多个源文件中,在类声明前添加partial关键字即可。代码:usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceTest { classProgram { staticvoidMain(str..
分类:Windows程序   时间:2015-05-28 18:19:20    阅读次数:164
推箱子
推箱子using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ cl...
分类:其他好文   时间:2015-05-28 12:34:15    阅读次数:147
HotSpot运行时概览#2
The HotSpot interpreter is also a critical part of the overall HotSpot adaptive optimization story. Adaptive optimization solves the problems of JIT compilation by taking advantage of...
分类:其他好文   时间:2015-05-28 09:40:09    阅读次数:131
单例模式
============1单例模式==============using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace Cons...
分类:其他好文   时间:2015-05-27 21:01:35    阅读次数:117
C#通过代码注册COM组件
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Diagnostics;using System.I...
分类:Windows程序   时间:2015-05-27 18:44:15    阅读次数:527
c#的序列化与反序列化
序列化与反序列化这个可以直接把对象转化为二进制进行存储与通信; 在需要序列化的类前加[Serializable],使用BinaryFormatter类来进行操作;using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; usi...
分类:Windows程序   时间:2015-05-26 21:29:29    阅读次数:189
C#的Dictionary字典
Dictionary有一种新的遍历方式foreach(KeyValuePair kv in dic){}dictionary练习using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace...
分类:Windows程序   时间:2015-05-26 21:26:14    阅读次数:238
C#多线程开发9:使用Mutex类禁止应用程序启动两次
使用Mutex类可以创建有名称的互斥,而系统可以识别有名称的互斥,因此可以使用Mutex类禁止应用程序启动两次。 下面是此种场景的演示代码。 using System; using System.Threading; namespace Run1InstanceExample { class Program { [STAThread] stati...
分类:编程语言   时间:2015-05-26 12:46:56    阅读次数:137
python多线程有几种实现方法
python多线程有几种实现方法,都是什么?         目前python 提供了几种多线程实现方式 thread,threading,multithreading ,其中thread模块比较底层,而threading模块是对thread做了一些包装,可以更加方便的被使用。2.7版本之前python对线程的支持还不够完善,不能利用多核CPU,但是2.7版本的python中已经考虑改进这...
分类:编程语言   时间:2015-05-26 12:42:48    阅读次数:113
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!