E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
RTThread
C#多线程
classProgram { staticvoidMain(string[]args) { for(inti=0;i<30;i++) { ThreadSta
rtthread
Start=newThreadStart
Marksinoberg
·
2015-12-12 14:00
多线程
C#
Python多线程学习
如下例:1importtime 2impo
rtthread
3deftimer(no,interval): 4cnt=0 5whilecnt=5: 13print'Thread%sreleased
流柯
·
2015-12-11 17:00
MYSQL— perror 错误码详情
[root@localhost~]#cattest_nothread.pyimportparamikoimpo
rtthread
ingimportosdefssh2(ip,username,passwd,
道行尚浅
·
2015-12-04 21:17
MYSQL
python 并发执行
适用python2和python3#-*-encoding:utf-8-*- fromthreadingimpo
rtThread
frommultiprocessingimportProcess defparProcess
bregman
·
2015-12-04 11:00
Python多线程初步
impo
rtthread
ing fromtimeimportsleep classMyThread(threading.Thread): def__init__(self): super
shimachao
·
2015-11-29 18:00
多线程
python
python 多线程ping大量服务器在线情况
/usr/bin/python #coding=utf-8 ''' Createdon2015-8-4 @author:Administrator ''' impo
rtthread
ing
Believer007
·
2015-11-25 09:00
python学习之多线程
引入线程包或者命名空间impo
rtthread
ing一:建立一个简单的线程程序importtime,threadingdeftest(): print('thread%sisrunning...'
小泥巴2015
·
2015-11-24 14:00
python父线程关闭后子线程不关闭问题
接下来,使用一个例子来说明:impo
rtthread
ingdefprt_hello():while1:print'hello'if__name__=='__main__':t=threadin
吹牛皮冠军获得者
·
2015-11-17 00:31
python
python父线程关闭后子线程不关闭问题
接下来,使用一个例子来说明:impo
rtthread
ing defprt_hello(): while1: print'hello' if__name__=='__main__': t=t
elegance_zf
·
2015-11-17 00:00
线程
python
内存计数器实现限频
以分钟为单位计数,超过相应数值则超过频率限制,很简单,不多解释importtime impo
rtthread
ing classCounter(object): def__init__(self):
woshiaotian
·
2015-11-16 22:00
限频
Python多线程求和程序
满足以下要求:1、可以设置步长2、步长可为负3、支持小数4、可指定线程数5、处理各种无效输入程序如下:impo
rtthread
ing frommathimportceil result=0 defsub_sum
pdcxs007
·
2015-11-13 10:00
多线程
线程
python
求和
python开发之thread实现布朗运动的方法
来实现布朗运动的一个例子下面是运行效果:代码部分:#Brownianmotion--anexampleofamulti-threadedTkinterprogram.fromtkinterimport*importrandomimpo
rtthread
ing
Hongten
·
2015-11-11 10:28
Python 之简单线程池创建
try:fromQueueimportQueue,Emptyexcept:fromqueueimportQueue,Emptyimpo
rtthread
ing importtime classWorkManager
OHeroJ
·
2015-11-10 20:00
SQL Server中解决死锁的新方法介绍和C#中多线程避免并发
多线程的工作队列 http://www.cnblogs.com/miniwiki/archive/2010/07/09/1774583.html 2.Sma
rtThread
Pool
·
2015-11-08 16:05
SQL Server
python延迟N秒执行一次
/usr/bin/python#coding=utf-8'''CreatedonNov7,2015python定时任务测试'''impo
rtthread
ingdeftest_onetime_delay(
beyondlove2010
·
2015-11-07 15:25
python
关于线程池ThreadPool的学习
学习重点ThreadPool.SetMinThreads(out workerThreads, out completionPo
rtThread
s).这是整个线程池的关键。
·
2015-11-07 10:06
ThreadPool
python线程锁
#-*-coding:UTF-8-*- ''' Createdon2015年10月25日 @author:young ''' impo
rtthread
ing balance=0 lock=threading.Lock
qq909157370
·
2015-11-05 11:00
python
python进程&线程
#-*-coding:UTF-8-*- ''' Createdon2015年10月25日 @author:young ''' importos impo
rtthread
ing importtime
qq909157370
·
2015-11-05 10:00
python
一些实用的python小脚本
referer:http://wooyun.org/bugs/wooyun-2015-0141726#coding:utf-8importreimporturllib2impo
rtthread
ingimporttimestart
爬虫仔蛙
·
2015-11-02 14:12
Python线程间的同步与互斥
/usr/bin/python #encoding=utf-8 importtime impo
rtthread
ing index=0 defprintIndex(): globalindex globallock
zhangqi_gsts
·
2015-11-01 12:00
线程
python
线程同步互斥
Smart Thread Pool 介绍
A smart Thread Pool implementation in .NET.http://www.codeproject.com/cs/threads/sma
rtthread
pool.asp
·
2015-10-31 09:37
thread
sma
rtthread
pool
Sma
rtThread
Pool https://github.com/amibar/Sma
rtThread
Pool 首先是实例化的时候的参数的解释 //Initialize Sma
rtThread
Pool
·
2015-10-28 07:44
ThreadPool
Python调用nmap扫描网段主机信息生成xml
-*- 3#Date:2015年10月23日 4#Author:蔚蓝行 5#博客http://www.cnblogs.com/duanv/ 6 7fromIPyimportIP 8impo
rtthread
ing
蔚蓝行
·
2015-10-23 21:00
STP
http://www.codeproject.com/KB/threads/sma
rtthread
pool.aspx http://www.cnblogs.com/jeffwongishandsome
·
2015-10-21 13:36
T
开源线程池组件Sma
rtThread
Pool
1、为什么需要使用线程池(Thread Pool) 减少线程间上下文切换。线程执行一定的时间片后,系统会自动把cpu切换给另一个线程使用,这时还需要保存当前的线程上下文状态,并加载新线程的上下文状态。当程序中有大量的线程时,每个线程分得的时间片会越来越少,可能会出现线程未处理多少操作,就需要切换到另一线程,这样频繁的线程间上下文切换会花费大量的cpu时间。 减少内存占用。系统每创建一条
·
2015-10-21 13:21
ThreadPool
Sma
rtThread
Pool
https://github.com/amibar/Sma
rtThread
Pool 首先是实例化的时候的参数的解释 //Initialize Sma
rtThread
Pool & Make
·
2015-10-21 11:05
ThreadPool
iOS 多线程 NSThread
[cpp] view plain copy - (IBAction) sta
rtThread
ButtonPressed:(UIButton
·
2015-10-21 11:31
thread
多线程笔记
impo
rtthread
ingimportqueueimporttimeimportrandom '''1.创建一个Queue.Queue()的实例,然后使用数据对它进行填充。
NLGBZJ
·
2015-10-18 14:00
测试ping小程序
/usr/bin/envpythonimportos,sys,reimportsubprocessimpo
rtthread
ingnameList=eval(sys.argv[1])defrunCheck
nginx2012
·
2015-10-08 17:32
python
测试ping小程序
/usr/bin/envpythonimportos,sys,reimportsubprocessimpo
rtthread
ingnameList=eval(sys.argv[1])defrunCheck
nginx2012
·
2015-10-08 17:32
python
测试ping小程序
/usr/bin/envpythonimportos,sys,reimportsubprocessimpo
rtthread
ingnameList=eval(sys.argv[1])defrunCheck
nginx2012
·
2015-10-08 17:32
python
MySQL备份工具mydumper备份
/usr/bin/phthon importos importtime importcommands importshutil impo
rtthread
ing fromos.pathimportjoin
mchdba
·
2015-09-30 23:00
基于用户协同过滤python源码【多线程计算RMSE值】
#-*-coding:utf-8-*-importmathimportrandomimporttimefromthreadingimpo
rtThread
fromthreadingimportLock#基于用户协同推荐算法
u013719780
·
2015-09-29 23:00
python
基于用户协同过滤推荐算法
python多线程http压力测试脚本
#coding=utf-8importsysimporttimeimpo
rtthread
importhttplib,urllibimportrandomimportuuidimportlogginglogging.basicConfig
feihuadao
·
2015-09-28 15:04
python
Python 网络爬虫 - 抓取糗事百科的段子(最新版)
代码#-*-coding:cp936-*- __author__="christianchen" importurllib2 importre impo
rtthread
ing importtime classTool
夲仒無道
·
2015-09-24 16:00
python
爬虫
蜘蛛
抓取
糗事
Python多线程编程之多线程加锁
1#coding:utf-8 2impo
rtthread
ing 3 4start_task=0 5task_num=10000 6mu=threading.Lock()###通过工厂方法获取一个新的锁
旭东的博客
·
2015-09-22 23:00
python 监测主机是否alive
/usr/bin/envpython#-*-coding:utf-8-*-importsysfromthreadingimpo
rtThread
importsubprocessfromQueueimportQueuenum_threads
yzg2880671962
·
2015-09-22 11:33
python
null
import
主机
多核时代下的多线程编程----帮大家读懂TThread类
首先就是构造函数:constructo
rTThread
.Create(CreateSuspended:Boolean);begininheritedCreate;AddThread;FSuspended
itkeyuan
·
2015-09-19 23:00
扫描网站服务器真实IP的小脚本
_8-*- 4#Date:2015年9月11日 5#Author:蔚蓝行 6#博客http://www.cnblogs.com/duanv/ 7 8importrequests 9impo
rtthread
ing
蔚蓝行
·
2015-09-11 15:00
Python 的 多线程xmlrpcserver
服务端:fromSocketServerimpo
rtThread
ingMixlnfromSimpleXMLRPCServerimportSimpleXMLRPCServerclassThreadXMLRPCServer
Colben
·
2015-09-06 21:00
Python3 多线程并发 post 压力测试 并发编程
Python3多线程并发,简单的服务器压力测试代码:#coding=utf-8 fromurllibimportrequest,parse fromurllib.errorimportURLError impo
rtthread
ing
y396397735
·
2015-08-13 15:00
python 多线程处理List
#-*-coding:UTF-8-*-#"""根据Redis的密码字典,暴力破解"""importredisimportsys,osimpo
rtthread
ingBIN="/usr/local/bin/
skskevin
·
2015-08-04 15:51
python
多线程处理List
python 多线程处理List
#-*-coding:UTF-8-*-#"""根据Redis的密码字典,暴力破解"""importredisimportsys,osimpo
rtthread
ingBIN="/usr/local/bin/
skskevin
·
2015-08-04 15:51
python
多线程处理List
python 多线程处理List
#-*-coding:UTF-8-*-#"""根据Redis的密码字典,暴力破解"""importredisimportsys,osimpo
rtthread
ingBIN="/usr/local/bin/
skskevin
·
2015-08-04 15:51
python
多线程处理List
python
Python实现简单的代理服务器
端口可以进行管理主要功能就是做包转发,如果有一个桥服务器,可以用来外网访问内网用,还是很管用的#/bin/envpython#coding:utf-8importsocket,select,sys,timeimpo
rtthread
s_list
Sephiroth
·
2015-07-25 12:51
Python多线程介绍
最简单的一个多线程例子[codesyntaxlang="python"]__author__='suren' impo
rtthread
importtime deftask(): print(1)
素人派
·
2015-07-22 07:00
thread
多线程
python
在C#中ParameterizedThreadStart和ThreadStart区别
不需要传递参数,也不需要返回参数我们知道启动一个线程最直观的办法是使用Thread类,具体步骤如下:ThreadSta
rtthread
Start=newThreadStart(Calculate);Threadthread
finish_dream
·
2015-07-17 22:00
Python实现快速多线程ping的方法
_#'''名称:快速多线程ping程序开发:gyhonggyh9711日期:20:512011-04-25'''importpexpectimportdatetimefromthreadingimpo
rtThread
host
guoyh
·
2015-07-15 18:19
Python实现telnet服务器的方法
具体实现方法如下:impo
rtthread
ingclassmyThread(threading.Thread):def__init__(self,conn,add):threading.Thread.
Sephiroth
·
2015-07-10 12:15
Python多线程下载文件的方法
具体实现方法如下:importhttplibimporturllib2importtimefromthreadingimpo
rtThread
fromQueueimportQueuefromtimeimportsleepproxy
speedmancs
·
2015-07-10 11:00
上一页
72
73
74
75
76
77
78
79
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他