码迷,mamicode.com
首页 >  
搜索关键字:threading    ( 3244个结果
【python标准库学习】thread,threading(二)多线程同步
在一个程序中,全部变量...
分类:编程语言   时间:2014-05-18 08:20:26    阅读次数:292
真正的PHP多线程(绝非fork或者用http再开进程)
转载:http://blog.csdn.net/leinchu/article/details/8012640我写了一个扩展打算放到pecl,但是,进过交流发现有人已经做了两个php的多线程扩展1、https://github.com/alecgorge/php_threading/2、https:...
分类:编程语言   时间:2014-05-17 01:08:08    阅读次数:319
Program.cs 累积_C#
1 using System; 2 using System.Diagnostics; 3 using System.Threading; 4 using System.Windows.Forms; 5 using UtilityClass; 6 7 namespace Program 8 { .....
分类:其他好文   时间:2014-05-17 01:03:00    阅读次数:311
c# 单链表实现 简单示例(可复制直接运行)
最近学习数据结构,发现c# 其实和c 的链表的实现差不多的下面是一段可直接运行的代码 1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 using System.Threading; 5 ...
分类:其他好文   时间:2014-05-16 06:24:02    阅读次数:663
【python标准库学习】thread,threading(一)多线程的介绍和使用
在单个程序中我们经常用多线程来处理不同的工作,尤其是有的工作需要等,那么我们会新建一个线程去等然后执行某些操作,当做完事后线程退出被回收。当一个程序运行时,就会有一个进程被系统所创建,同时也会有一个线程运行,这个线程就是主线程main,在主线程中所创建的新的线程都是子线程,子线程通常都是做一些辅助的事。python中提供了thread和threading两个模块来支持多线程。         p...
分类:编程语言   时间:2014-05-15 23:20:00    阅读次数:471
交换密钥与安全传输
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 using System.Security....
分类:其他好文   时间:2014-05-15 17:20:45    阅读次数:329
Python写的一个优美的定时器,定时精度可调
# -* coding: utf-8 -*- import sys import os import getopt import threading import time def Usage(): usage_str = '''说明: \t定时器 \timer.py -h 显示本帮助信息,也可以使用--help选项 \timer.py -d num 指定一个延时时间(以毫秒为单位)...
分类:编程语言   时间:2014-05-12 06:29:06    阅读次数:428
C# Socket服务端和客户端互相send和receive
服务端1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Text;4usingSystem.Net.Sockets;5usingSystem.Net;6usingSystem.Threading;78namespaceControl...
分类:其他好文   时间:2014-05-11 04:28:28    阅读次数:329
C# Parallel类的作用
System.Threading.Tasks.Parallel是能够以并行的方式迭代数据集合(实现了IEnumerable的对象),它主要提供2个方法:For()和ForEach() 事例: using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Net.Consol...
分类:其他好文   时间:2014-05-10 08:59:10    阅读次数:302
Threading.Tasks.Task多线程 静态全局变量(字典) --只为了记录
--------------------------------------------------------------后台代码------------------------------------------ public JsonResult ImportPDF(Int64 id) {.....
分类:编程语言   时间:2014-05-10 02:36:30    阅读次数:707
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!