码迷,mamicode.com
首页 >  
搜索关键字:threading    ( 3244个结果
python API获取音乐链接,歌手信息........
import requests import re from threading import Thread from bs4 import BeautifulSoup import openpyxl import json class MUSIC(Thread): def run(self): s ...
分类:编程语言   时间:2021-06-06 19:17:40    阅读次数:0
🍖Flask自定义 local 对象 (实现并发处理请求)
自定义 local 对象 (实现并发处理请求) 1.思考及需求 要实现并发效果, 每一个请求进来的时候我们都开启一个进程, 这显然是不合理的, 于是就可以使用线程 如果我们的需求是每个线程都对变量 num 进行设值, 并打印其线程号, 其效果如下 : from threading import Th ...
分类:其他好文   时间:2021-06-05 17:52:29    阅读次数:0
计应191西 曲明明 第三组
using system;using system.collections.generic;using system.linq;using system.text;using system.threading.tasks;namespace consoleapplication3{ class pr ...
分类:其他好文   时间:2021-06-02 19:26:59    阅读次数:0
计应191 西 张海鹏 第三组
using system;using system.collections.generic;using system.linq;using system.text;using system.threading.tasks; namespace consoleapplication3{ class p ...
分类:其他好文   时间:2021-06-02 19:26:24    阅读次数:0
Mutex
Mutex 一、简介 Mutex的突出特点是可以跨应用程序域边界对资源进行独占访问,即可以用于同步不同进程中的线程,这种功能当然这是以牺牲更多的系统资源为代价的。主要常用的两个方法:public virtual bool WaitOne() 阻止当前线程,直到当前 System.Threading. ...
分类:其他好文   时间:2021-06-02 14:34:57    阅读次数:0
C# 实现的几种负载均衡算法
主要实现了 轮询、加权轮询、随机、加权随机、IPHash 参考大佬文章: https://www.cnblogs.com/wxd0108/p/5465938.html 废话不说,码上见 using System; using System.Collections.Generic; using Sys ...
分类:编程语言   时间:2021-05-24 09:27:18    阅读次数:0
python定时任务的实现(在特定时间段内,间隔一定时间执行一次任务)
有时候,我们想让程序在某个特定时间段内去多次执行某个任务,比如每天凌晨3点-4点,隔10秒执行一次任务,接下来,我们就用python自带的datetime模块和threading模块去实现它,代码如下: import datetime import threading #任务描述:每天凌晨3-4点, ...
分类:编程语言   时间:2021-04-30 12:02:03    阅读次数:0
python实现多线程
from threading import Thread # 方式一 # def sub_thread(): # for i in range(11): # print(i) # def main(): # t = Thread(target=sub_thread) # t.start() # fo ...
分类:编程语言   时间:2021-04-19 14:46:14    阅读次数:0
计应191(西)第六组 靳琳琳
四则运算代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace ClassLibrary1{ public ...
分类:其他好文   时间:2021-04-12 12:51:16    阅读次数:0
wcf-学习
将服务寄宿与控制台: using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel; using System.ServiceModel.Description; using ...
分类:其他好文   时间:2021-04-06 14:33:05    阅读次数:0
3244条   上一页 1 2 3 4 ... 325 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!