转载: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
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 的链表的实现差不多的下面是一段可直接运行的代码 1
using System; 2 using System.Collections.Generic; 3 using System.Text; 4 using
System.Threading; 5 ...
分类:
其他好文 时间:
2014-05-16 06:24:02
阅读次数:
663
在单个程序中我们经常用多线程来处理不同的工作,尤其是有的工作需要等,那么我们会新建一个线程去等然后执行某些操作,当做完事后线程退出被回收。当一个程序运行时,就会有一个进程被系统所创建,同时也会有一个线程运行,这个线程就是主线程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
# -* 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
服务端1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Text;4usingSystem.Net.Sockets;5usingSystem.Net;6usingSystem.Threading;78namespaceControl...
分类:
其他好文 时间:
2014-05-11 04:28:28
阅读次数:
329
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
--------------------------------------------------------------后台代码------------------------------------------
public JsonResult ImportPDF(Int64 id) {.....
分类:
编程语言 时间:
2014-05-10 02:36:30
阅读次数:
707