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
Threading
文件服务器
#ftpserver.pyfromsocketimport*from
threading
importThreadimportos,time#全局变量HOST='0.0.0.0'PORT=8080ADDR=
qq_42307546
·
2023-09-12 08:09
服务器
python
运维
【Python】【源码】SocketIO做一个网络聊天室软件-客户端源码
【源码分析】根据设计:引入python包,除了同Server一样需要引入
Threading
和Socket,为实现简单GUI还需要引入
每日出拳老爷子
·
2023-09-11 10:19
Python
python
网络
开发语言
线程锁lock
from
threading
importLocklock=Lock()#创建锁对象lock.acquire()#上锁,如果lock已经上锁在调用会阻塞lock.release()#解锁withlock:#
qq_42307546
·
2023-09-10 11:08
java
服务器
linux
线程小练习
from
threading
importThreadfromtimeimportsleep,ctime#自定义线程类classTheradClass(Thread):def__init__(self,target
qq_42307546
·
2023-09-10 11:38
python
开发语言
线程间通信x
线程间通信使用全局变量通信共享资源争夺:多个进程或线程都可以操作的资源称为共享资源"""event线程互斥方法"""from
threading
importThread,Events=None#用于通信e
qq_42307546
·
2023-09-10 11:38
开发语言
python
文件服务器
#ftpserver.pyfromsocketimport*from
threading
importThreadimportos,time#全局变量HOST='0.0.0.0'PORT=8080ADDR=
qq_42307546
·
2023-09-10 11:36
服务器
python
运维
记录窗体关闭位置(从窗体上次关闭的位置启动窗体)
usingMicrosoft.Win32;usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.
Threading
.Tasks
anlog
·
2023-09-10 07:53
笔记
记录窗体关闭位置
注册表数据存储
从上次关闭位置启动窗体
python线程、协程
线程创建线程对象from
threading
importThreadt=Thread()#功能:创建线程对象#参数:target绑定线程函数#args元组给线程函数位置传参#kwargs字典给线程函数键值传参启动线程
白杆杆红伞伞
·
2023-09-10 06:14
python常用操作
python
开发语言
circt firtool man page
firtool--helpOVERVIEW:MLIR-basedFIRRTLcompilerUSAGE:firtool[options]OPTIONS:Generaloptions:--mlir-disable-
threading
-Disablemulti-
threading
withinMLIR
前滩西岸
·
2023-09-10 05:15
ubuntu
verilog
chisel
chisel
rocketchip
firrtl
C# WPF 自己写的一个模拟病毒传播的程序,有可视化
usingSystem.Collections.Concurrent;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.
Threading
崇文殿大学士
·
2023-09-10 03:07
c#
wpf
java
cpu亲和性
0、准备知识超线程技术(Hyper-
Threading
):就是利用特殊的硬件指令,把两个逻辑内核(CPUcore)模拟成两个物理芯片,让单个处理器都能使用线程级并行计算,进而兼容多线程操作系统和软件,减少了
67c7ec450933
·
2023-09-10 02:16
Python线程(thread)
threading
线程模块在Python3中,通过
threading
模块提供线程的功能。原来的thread模块已废弃。
spiritx
·
2023-09-10 01:15
python
开发语言
Python: Queue实现生产者及消费者模型
/usr/bin/python3#CloseableQueeuefrom
threading
im
圣地亚哥_SVIP
·
2023-09-09 15:29
douyin for video
run.pyfromtkinterimport*fromtkinterimportttkfromtkinterimportmessageboximportosimport
threading
fromspider_douyin_videoimportSpiderimportre
是东东
·
2023-09-09 12:04
python阿里云邮箱工作日志提交工具gui
/usr/bin/python3#-*-coding:UTF-8-*-importsmtplibimporttimeimport
threading
fromemail.messageimportEmailMessagefromtkinterimport
apples_kk
·
2023-09-09 09:31
python3
工作日志
阿里云邮箱
python
python爬虫,多线程与生产者消费者模式
/index.htmlhttps://sc.chinaz.com/tupian/index_2.htmlhttps://sc.chinaz.com/tupian/index_3.html'''from
threading
importThreadfromqueueimportQueue
in dreaming
·
2023-09-09 08:54
从零开始的python生活
python
爬虫
开发语言
C#__多线程之任务和连续任务
/////////任务:System.
Threading
.Tasks(异步编程的一种实现方式)///表应完成某个单元工作。这个工作可以在单独的线程中运行,也可以以同步方式启动一个任务。
天上游戏地下人间
·
2023-09-09 07:13
C#编程
c#
java
开发语言
Unity Shader实现水波纹效果(模拟物体在水面上行走效果)
UnityShader实现水波纹效果CSharp代码usingSystem.
Threading
;usingUnityEngine;publicclassWaveTexture:MonoBehaviour
帅_shuai_
·
2023-09-09 06:54
Unity
unity
shader
unity3d
c#
c# 设计剪刀石头布游戏
#computerusingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.
Threading
.Tasks
weixin_44119674
·
2023-09-08 23:58
C#
实战案例
c#
游戏
开发语言
redis多线程操作
今天更新一个redis多线程操作,可直接搬运importredis,os,
threading
,queueimportpandasaspd#创建一个任务队列task_queue=queue.Queue()
励志的大鹰哥
·
2023-09-08 11:27
redis
数据库
缓存
Python多线程Thread——生产者消费者模型
importrandomimport
threading
importtimeLock=
threading
.Lock()books=10#图书馆书籍数量b_rt=0#外面持有数量(借出去的数量)defba(
Aix959
·
2023-09-08 08:35
python
开发语言
python队列与多线程——生产者消费者模型
队列相关知识点多线程相关知识点importrandomimporttimefromqueueimportQueueimport
threading
classConsumer(
threading
.Thread
Aix959
·
2023-09-08 08:35
python
windows
linux
Python并发和并行(6)——Semaphore与Barrier
由于其中涉及到了很多专业知识,这次就不讲解了,直接上代码,如果您感兴趣可以先学操作系统课,然后会对这些有个很好理解的:Semaphore这是操作系统课设的生产者和消费者模型,不懂的可以去查找信号量import
threading
importtimemutex
TangBaron
·
2023-09-07 22:30
将多个EXCEL 合并一个EXCEL多个sheet
usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.
Threading
.Tasks
qq_739246247
·
2023-09-07 21:17
c#
DataGridView绑定数据更新
1、创建数据类usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.
Threading
.Tasks
大浪淘沙胡
·
2023-09-07 20:41
C#
DataGridView
python多线程
threading
库
线程特征一个进程中可以包含多个线程线程也是一个运行行为,消耗计算机资源一个进程中的所有线程共享这个进程的资源多个线程之间的运行互不影响各自运行线程的创建和销毁消耗资源远小于进程各个线程也有自己的ID等特征3.
threading
Bruce-li__
·
2023-09-07 19:53
Python
python
python-16-多线程模块
threading
python使用多线程实例讲解1进程和线程1.1进程和线程的概念进程(process)和线程(thread)是操作系统的基本概念。进程是资源分配的最小单位,线程是CPU调度的最小单位。线程是程序中一个单一的顺序控制流程,进程内一个相对独立的、可调度的执行单元,是系统独立调度和分派CPU的基本单位。一、什么是进程计算机程序只不过是磁盘中可执行的二进制(或其他类型)的数据,它们只有在被读取到内存中,被
皮皮冰燃
·
2023-09-07 19:52
python3
python
Python 3.11 版本是对线程安全做了什么更改吗
import
threading
num=0defadd():globalnumforiinrange(10_000_000):num+=1defsub():globalnumforiinrange(10_
祈心无尘
·
2023-09-07 19:49
python3.11
C# 实现PLC的定时器
search-card.all.clickusingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.
Threading
.Tasks
罗迪尼亚的熔岩
·
2023-09-07 17:34
c#
开发语言
.net
iOS 内存管理--内存五大区、TiggedPointer、引用计数
准备工作Objc-818.2
Threading
ProgrammingGuide1.内存布局内存五大分区:栈区、堆区、全局区、常量区、代码区内存五大区1.1内存五大区栈区--stack特点栈是系统数据结构
冼同学
·
2023-09-07 09:03
python【
threading
】资料堆砌
threading
threading
线程本地数据threadobject属性和方法start()run()join()is_alive()identnative_idname
threading
.active_count
简单点好不好
·
2023-09-07 06:39
学习
python
多线程
2019-08-15
#serverfrom
threading
importThreadfromsocketimportsocketclassServerThread(Thread):def__init__(self,connect
容荔
·
2023-09-07 04:17
python-websockets
threading
实现是客户端的一个很好的选择,特别是对于不熟悉asyncio的用户来说。它也可以用于不需要
szial
·
2023-09-07 00:00
python
【CAD二次开发】获取当前Cad的版本
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.
Threading
.Tasks
三好学生~张旺
·
2023-09-07 00:06
.NET
C#
CAD二次开发
开发语言
c#
C#中Thread.Time的使用
改造了一下官方案例:usingSystem;usingSystem.
Threading
;//Thread.Time必备的命名空间classTimerExample{staticvoidMain(){Auto
Leoysq
·
2023-09-06 20:28
Unity与c#
python在server程序中运行定时任务以及优雅退出
话不多说,上代码defjob():ticker=
threading
.Event()whilenotticker.wait(60):Cron().main()defstart():cro=
threading
.Thread
wangmarkqi
·
2023-09-06 17:56
python
python
fastapi
C#中Thread.Time的使用
改造了一下官方案例:代码块usingSystem;usingSystem.
Threading
;classTimerExample{staticvoidMain
Leoysq
·
2023-09-06 12:35
Unity与c#
c#-thread
timer
python连接自己的机器人接口在微信聊天
#encoding:utf-8importiofromitchat.contentimport*importitchatimport
threading
importrequestsimpo
小炫y
·
2023-09-06 05:02
python
机器人
并发编程
使用进程相关函数孤儿和僵尸群聊聊天室multiprocessing模块创建进程进程创建方法自定义进程类进程池实现进程间通信(IPC)管道通信(Pipe)消息队列共享内存信号量(信号灯集)线程编程(Thread)线程基本概念
threading
_leyilea
·
2023-09-06 04:34
Python笔记
并发编程
进程
线程
协程
IO多路复用
打包个七夕exe玩玩
1823963-1-1.html这个贱我必须要犯,可是我也不能直接给他装个python吧多麻烦就这几个弹窗好low加上bgm再打包成exeimporttkinterastkimportrandomimport
threading
importt
隔壁老王会翻墙
·
2023-09-06 02:43
pygame
python
python argv用法
importnumpyasnpimportos,sys,_thread,
threading
defcmd(s="pause"):os.system(s);defp(s):print(s);returnsdefthread_it
虚假程序设计
·
2023-09-05 23:44
python
开发语言
python编程中如何实现多线程
在Python中实现多线程可以使用
threading
模块。
nxhujiee
·
2023-09-05 22:54
__Python
python
开发语言
Python表白代码合集:用完这几种表白代码,找不到对象你来找我,这也太秀了吧❤️
Python“码”上七夕❤️话不多说,我们直接上代码~第一种、表白弹窗先看效果文字背景啥的,大家可以自定义一下~代码展示20行代码实现弹窗importtkinterastkimportrandomimport
threading
importtimedefdow
嗨学编程
·
2023-09-05 19:31
Python
python
开发语言
Python 自学:使用线程模块同时运行代码
Threading
1.以下代码中,程序会等一个函数执行完毕才执行下一个函数。importtimestart=time.perf_counter()defdo_something():print('Sleeping1second...')time.sleep(1)print('DoneSleeping...')do_something()do_something()finish=time.perf_counter()
练习两年半的工程师
·
2023-09-05 14:17
Python
python
自学Python 55 多线程开发(五)使用进程库multiprocessing
Python活动地址:CSDN21天学习挑战赛文章目录Python一、使用进程库multiprocessing二、
threading
和multiprocessing的关系三、使用Pipes和Queues
江南赴艽野
·
2023-09-05 14:47
Python学习
python
python opencv
保存直播流生存逐个图片importcv2from
threading
importThreadclassThreadedCamera(object):def__init__(self,source=0):self.capture
linzhiji
·
2023-09-05 10:11
python
开发语言
C#常用多线程(线程同步,事件触发,信号量,互斥锁,共享内存,消息队列)
usingSystem;usingSystem.
Threading
;usingSystem.Windows.Forms;usingUtilForm.Util;namespaceUtilForm{//线程同步
CHHC1880
·
2023-09-05 05:48
c#
开发语言
基于python2 的ws demo
后端server源码#-*-coding:utf8-*-import
threading
importhashlibimportsocketimportbase64globalclientsclients=
loveyena
·
2023-09-05 03:05
第二节课作业第二题
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.
Threading
.Tasks
你不要难过
·
2023-09-05 00:28
PMD代码检查:如果多线程访问map,应使用ConcurrentHashMap(UseConcurrentHashMap )
https://docs.pmd-code.org/pmd-doc-6.55.0/pmd_rules_java_multi
threading
.html#useconcurrenthashmap如果在java5
听海边涛声
·
2023-09-04 03:44
java
PMD
上一页
21
22
23
24
25
26
27
28
下一页
按字母分类:
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
其他