码迷,mamicode.com
首页 >  
搜索关键字:threading    ( 3244个结果
python多线程(一)
原文:http://www.pythonclub.org/python-basic/threading一、python多线程thread和threading实现python是支持多线程的,并且是native的线程。主要是通过thread和threading这两个模块来实现的。python的threa...
分类:编程语言   时间:2014-07-16 22:56:30    阅读次数:245
关于反射的学习
前边看抽象工厂模式时,对反射有些不熟悉,这两天学习了一下,把成果记下来。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;nam...
分类:其他好文   时间:2014-07-16 21:11:15    阅读次数:173
<C#>多线程
Thread类在命名空间System.Threading里定义。Thread的Priority有5种,AboveNormal、BelowNormal、Normal、Highest和Lowest。Thread构造函数,有Thread(new ThreadStart(method))。Thread有St...
分类:编程语言   时间:2014-07-13 22:14:09    阅读次数:236
C# Hashtable中存入数组或类
示例代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Collections;namespace...
分类:其他好文   时间:2014-07-12 13:34:26    阅读次数:330
python使用multiprocessing进行多进程编程(1)
multiprocessing模块实现了对多进程编程的封装,让我们可以非常方便的使用多进程进行编程。它的使用方法非常类似threading模块。 1.创建一个进程 import multiprocessing def worker(): """worker function""" print 'Worker' return if __name__ == '_...
分类:编程语言   时间:2014-07-10 17:10:01    阅读次数:216
WPF 系统托盘 图标闪烁
WPF消息通知系统托盘,图标闪烁 1 using System.Windows.Forms; 2 3 using System.Windows.Threading; 4 5 public partial class Window : Window 6 { ...
分类:其他好文   时间:2014-07-09 23:19:32    阅读次数:307
重写ToString与实现扩展方法
usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication2 { classProgram { staticvoidMain(string[]args) { Moneym=newMoney(); m.Amount=30.00m; Console.WriteLine(m.ToString());/..
分类:其他好文   时间:2014-07-09 08:48:12    阅读次数:176
构造函数初始化器
usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication2 { classProgram { staticvoidMain(string[]args) { catc=newcat("萌萌");//先执行cat(strings,inti)构造函数 Console.WriteLi..
分类:其他好文   时间:2014-07-09 08:05:19    阅读次数:184
c#值类型,引用练习,ref,out
usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication1 { classProgram { staticvoidMain(string[]args) { inti=10;//值类型 intj=10;//必须初始化 intk;//不需要初始化 int[]iarr={..
分类:其他好文   时间:2014-07-08 09:42:06    阅读次数:221
Python并发编程实例教程
有关Python中的并发编程实例,主要是对Threading模块的应用,文中自定义了一个Threading类库。一、简介 我们将一个正在运行的程序称为进程。每个进程都有它自己的系统状态,包含内存状态、打开文件列表、追踪指令执行情况的程序指针以及一个保存局部变量的调用栈。通常情况下,一个进程依照一个....
分类:编程语言   时间:2014-07-08 00:48:44    阅读次数:257
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!