码迷,mamicode.com
首页 >  
搜索关键字:threading    ( 3244个结果
C#.dynamic和反射
using System;using System.Collections.Generic;using System.Diagnostics;using System.Linq;using System.Text;using System.Threading.Tasks;namespace dyna...
分类:Windows程序   时间:2015-01-16 01:06:15    阅读次数:769
并行编程多线程之Parallel
1、简介 随着多核时代的到来,并行开发越来越展示出它的强大威力!使用并行程序,充分的利用系统资源,提高程序的性能。在.net 4.0中,微软给我们提供了一个新的命名空间:System.Threading.Tasks。2、测试类using System;using System.Collection....
分类:编程语言   时间:2015-01-14 19:51:53    阅读次数:254
图片帮助类
using System;using System.Collections.Generic;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;namespace HF.SHOP....
分类:其他好文   时间:2015-01-13 13:50:54    阅读次数:143
C#中的线程(一)入门 转载
文章系参考转载,英文原文网址请参考:http://www.albahari.com/threading/转载:http://www.cnblogs.com/miniwiki/archive/2010/06/18/1760540.html#1.1作者 Joseph Albahari, 翻译 Swank...
分类:编程语言   时间:2015-01-13 12:09:44    阅读次数:202
Python中threading.local方法
#coding=utf-8 import threading # 创建全局ThreadLocal对象: localVal = threading.local() localVal.val = "Main-Thread" def process_student(): print '%s (in %s)' % (localVal.val, threading.current_thread()....
分类:编程语言   时间:2015-01-12 16:29:12    阅读次数:363
【智能家居v1.0项目】C#实现scoket通信
问题背景:在实现智能家居项目中,要实现服务器接受到zigbee模块采集到的信息,并且将该数据通过socket通信传输给客户端。以下是服务器客户端//以下的using是自己添加的 usingSystem.IO.Ports; usingSystem.Net; usingSystem.Net.Sockets; usingSystem.Threading; namespaceNJG..
分类:Windows程序   时间:2015-01-12 07:02:27    阅读次数:659
C#求水仙花数!
最近在入门学习.NET编程,慢慢的学习了一些门道,同时也需要将学习的点点滴滴记录下来,今天我就自己想了想,把水仙花数的代码写出来,运行也通过了,就贴在这里,分享给大家,也给自己做一个记录。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.T...
分类:Windows程序   时间:2015-01-10 01:11:23    阅读次数:291
C# 编写9*9乘法表!
??using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication10{    class Program    {        static void Main(string[] ...
分类:Windows程序   时间:2015-01-10 01:06:47    阅读次数:206
Python单例模式
方法一Python代码importthreadingclassSingleton(object):__instance=None__lock=threading.Lock()#usedtosynchronizecodedef__init__(self):"disablethe__init__meth...
分类:编程语言   时间:2015-01-09 19:09:55    阅读次数:206
DevExpreess汉化使用方法及汉化包
1、在程序入口加入代码:System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CN");2、将汉化包放入运行目录下,目录结构如图:3、运行效果图:4、汉化包:...
分类:其他好文   时间:2015-01-09 00:01:24    阅读次数:546
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!