码迷,mamicode.com
首页 >  
搜索关键字:threading    ( 3244个结果
多线程队列下载天涯帖子
版本一:#coding:utf-8import Queueimport threadingimport timeimport urllib2import reexitFlag = 0class myThread (threading.Thread): def __init__(self, threa...
分类:编程语言   时间:2015-02-06 18:27:08    阅读次数:137
多线程下载图片
# -*- coding:utf8 -*-from bs4 import BeautifulSoupimport os, sys, urllib2, urllibimport thread, threadingclass downloader(threading.Thread): """docstr...
分类:编程语言   时间:2015-02-06 18:11:00    阅读次数:201
线程----Monitor类设置超时值
Monitor类与Lock语句相比,Monitor类的主要优点是:可以添加一个等待被锁定的超时值。usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; usingSystem.Threading; namespaceConsoleApplication2 { classProgram..
分类:编程语言   时间:2015-02-06 07:07:57    阅读次数:193
使用EF 的简单的增删改查
using DAL;using Model;using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace BLL{ .....
分类:其他好文   时间:2015-02-04 23:04:24    阅读次数:349
Mytophome Deal
using AnfleCrawler.Common;using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Anf...
分类:其他好文   时间:2015-02-04 18:20:53    阅读次数:175
C#定时器的用法
关于C#中timer类 在C#里关于定时器类就有3个1.定义在System.Windows.Forms里2.定义在System.Threading.Timer类里3.定义在System.Timers.Timer类里System.Windows.Forms.Timer是应用于WinForm中的,他是通...
分类:Windows程序   时间:2015-02-03 18:46:05    阅读次数:226
多线程同步、异步(BeginInvoke)
一、线程的基础知识1 System.Threading.Thread类System.Threading.Thread是用于控制线程的基础类,通过Thread可以控制当前应用程序域中线程的创建、挂起、停止、销毁。它包括以下常用公共属性:属性名称说明CurrentContext获取线程正在其中执行的当前...
分类:编程语言   时间:2015-02-03 16:46:33    阅读次数:169
c# 反射1
根据反射为类中的属性赋值:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Collections;u...
分类:Windows程序   时间:2015-02-02 19:41:34    阅读次数:157
C# 网络编程小计 20150202
在学习网络Socket编程之前必须得学会多线程编程,这个是经常会用的到可参考:http://www.cnblogs.com/GIS_zhou/articles/1839248.htmlSystem. Threading; 线程的命名空间1 //线程的创建2 Threa...
分类:Windows程序   时间:2015-02-02 15:38:38    阅读次数:154
C# 面向对象
C# 面向对象 葫芦娃大战奥特曼----显示效果-----using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace....
分类:Windows程序   时间:2015-02-01 17:38:23    阅读次数:237
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!