码迷,mamicode.com
首页 >  
搜索关键字:threading    ( 3244个结果
关于冒泡排序
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleA.....
分类:编程语言   时间:2015-03-20 18:22:30    阅读次数:167
C#线程并发执行的实例[转]
实现思路:线程执行后进行阻塞,判断当前标记是否达到设置的并发数,如果未达到上限,执行队列中将继续增加线程;如已达到其余线程排队等候。实例代码:注:其中用到Mutex与Interlocked两个与线程相关的类,需要加上 using System.Threading; 引用Threading命名空间。p...
分类:编程语言   时间:2015-03-20 18:04:12    阅读次数:135
递归求斐波那契数列
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ class...
分类:其他好文   时间:2015-03-20 18:00:15    阅读次数:125
C++11 Concurrency Features
Concept Header Summary Threads Standard, low-level, type-safe; Futures Via async function, hides threading; Locks Standard, low-level locking pr...
分类:编程语言   时间:2015-03-18 21:44:58    阅读次数:192
文件流的操作
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;namespace Command{ p...
分类:其他好文   时间:2015-03-18 20:09:54    阅读次数:150
控制台实现数据库的增删改查
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Data.SqlClient;using Syste...
分类:数据库   时间:2015-03-18 15:46:48    阅读次数:141
精确到1ms的Timer
在项目中,需要每隔20ms发送一个RTP数据包。一开始使用的是System.Windows.Forms下的Timer类,但是发现明显延迟了。用StopWatch测了一下,发现它的触发间隔居然不是20ms,而是在31ms左右摇摆。换了System.Threading下的Timer和System.Tim...
分类:其他好文   时间:2015-03-18 15:45:02    阅读次数:178
Python多线程编程简介
?####创建线程 格式如下 threading.Thread(group=None, target=None, name=None, args=(), kwargs={}) 这个构造器必须用关键字传参调用 - group 线程组 - target 执行方法 - name 线程名字 - args target执行的元组参数 - kwargs target执行的字典参数Thread对象...
分类:编程语言   时间:2015-03-17 15:52:53    阅读次数:191
C#第一次作业(hallow world)
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;/*namespace hallowword{ class Progra...
分类:Windows程序   时间:2015-03-16 22:55:54    阅读次数:239
C# Hello World
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ cla...
分类:Windows程序   时间:2015-03-16 22:48:56    阅读次数:187
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!