码迷,mamicode.com
首页 >  
搜索关键字:threading    ( 3244个结果
C#定时器
简介 在C 中可以有三种方式实现定时器,分别在以下三个类中。 1.定义在System.Windows.Forms里 2.定义在System.Threading.Timer类里 3.定义在System.Timers.Timer类里 第一种:System.Windows.Forms类 System.Wi ...
分类:Windows程序   时间:2019-03-12 15:34:38    阅读次数:241
多线程
并发:指的是任务数多余cpu核数,通过操作系统的各种任务调度算法,实现用多个任务“一起”执行(实际上总有一些任务不在执行,因为切换任务的速度相当快,看上去一起执行而已) 并行:指的是任务数小于等于cpu核数,即任务真的是一起执行的 1、多线程执行: import threading import t ...
分类:编程语言   时间:2019-03-10 13:43:06    阅读次数:177
自定义串口通讯类的实现
前面写串口通讯是有界面的,后面的项目感觉串口通讯只是辅助的作用,应该专门写一个不可视的类来做,这样的好处是通讯模块是独立的,要用的时候直接引用就行了。usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.IO;us
分类:其他好文   时间:2019-03-09 23:24:14    阅读次数:207
多线程爬虫爬取详情页HTML
注意:如果想爬取详情页的信息请按须添加方法 import requests import os import re import threading from lxml import etree #爬去详情页得HTML内容 class CnBeta(object): def get_congtent ...
分类:编程语言   时间:2019-03-09 23:18:59    阅读次数:272
python并发编程之多线程基础知识点
1、线程理论知识 概念:指的是一条流水线的工作过程的总称,是一个抽象的概念,是CPU基本执行单位。 进程和线程之间的区别: 1. 进程仅仅是一个资源单位,其中包含程序运行所需的资源,而线程就相当于车间的流水线,负责执行具代码。 2. 每个进程至少包含一个线程,由操作系统自动创建,称之为主线程 3. ...
分类:编程语言   时间:2019-03-09 20:11:32    阅读次数:225
python开发线程:线程&守护线程&全局解释器锁
一 threading模块介绍 multiprocess模块的完全模仿了threading模块的接口,二者在使用层面,有很大的相似性,因而不再详细介绍 官网链接:https://docs.python.org/3/library/threading.html?highlight=threading# ...
分类:编程语言   时间:2019-03-08 23:35:58    阅读次数:223
GIL 线程池 进程池 同步 异步
from multiprocessing import Process from threading import Thread,enumerate,current_thread import time def task(): with open("2.昨日回顾","rt",encoding="ut ...
分类:编程语言   时间:2019-03-08 16:36:32    阅读次数:194
c# 有序链表合并 链表反转
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LinkedListTest { class P... ...
分类:Windows程序   时间:2019-03-08 11:21:50    阅读次数:251
python 模块 SQLalchemy
''' # &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a ...
分类:数据库   时间:2019-03-04 13:08:07    阅读次数:124
关于《openxml word》 创建表格及添加样式,那些事
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using DocumentFormat.OpenXml;using Docu ...
分类:其他好文   时间:2019-03-04 09:30:23    阅读次数:158
3244条   上一页 1 ... 58 59 60 61 62 ... 325 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!