数据库锁 共享锁(Shared lock) 例1: T1: select * from table (请想象它需要执行1个小时之久,后面的sql语句请都这么想象) T2: update table set column1='hello' 过程:T1运行 (加共享锁) T2运行等待T1运行完之后再运行 ...
分类:
数据库 时间:
2020-02-05 23:26:00
阅读次数:
91
https://docs.python.org/zh-cn/3/library/multiprocessing.html 共享内存 可以使用 Value 或 Array 将数据存储在共享内存映射中。例如,以下代码: from multiprocessing import Process, Value ...
分类:
编程语言 时间:
2020-02-05 09:52:13
阅读次数:
105
1、找到目标进程Pid(ProcessEntry32结构体) 2、通过dwPid找到目标dll的模块句柄(MODULEENTRY32结构体) 3、根据找到的Pid打开目标进程hProcess = OpenProcess(PROCESS_ALL_ACCESS,FALSE,dwPid); 4、获取Fre ...
分类:
其他好文 时间:
2020-02-04 14:19:19
阅读次数:
75
IPC机制 进程间通信 + 进程和线程 + 线程是CPU调度的最小单元,同时线程是一种有限的系统资源。 + 进程一般指一个执行单元,在PC和移动设备上指一个程序或者一个应用。一个进程可以包含多个线程。 + 多进程情况 + 一个应用出自某些原因采用多进程模式实现,比如希望通过多进程获取多份内存空间。 ...
分类:
其他好文 时间:
2020-02-04 13:52:18
阅读次数:
86
MQTT[1]消息队列遥测传输(Message Queuing Telemetry Transport) subscribe to a topic and publish messages on that topic. The core of the client library is the cl ...
分类:
其他好文 时间:
2020-02-04 10:54:21
阅读次数:
85
原文引自:https://www.cnblogs.com/sch01ar/p/8687517.html 在Pycharm安装完unrar后,还要安装rar官方的库 不然运行的时候会抛出Couldn't find path to unrar library的错误 Windows: 下载rarlib的库 ...
分类:
编程语言 时间:
2020-02-04 10:54:03
阅读次数:
75
Python程序中的线程操作(线程池) concurrent模块 [TOC] 一、Python标准模块——concurrent.futures 官方文档:https://docs.python.org/dev/library/concurrent.futures.html 二、介绍 concurre ...
分类:
编程语言 时间:
2020-02-04 10:48:44
阅读次数:
99
进程间通信(IPC,Inter Process Communication) 1、管道(pipe),包含无名管道和命名管道 1)无名管道 2)命名管道 消息队列 共享内存 ...
分类:
系统相关 时间:
2020-02-03 20:54:43
阅读次数:
93
moment.js 是很常見的日期時間 library,友善的 API 與極佳的執行效率是它的兩大賣點。例如 (new Date()).getFullYear(),如果使用 moment.js 我可以只寫 moment().get('year'),可讀性增強許多。問題React Native 0.2... ...
分类:
Web程序 时间:
2020-02-03 15:53:46
阅读次数:
75
把dll的load放在Electron中,就会报一个错: Error: A dynamic link library (DLL) initialization routine failed 这显然就是dll没有加载成功,为什么在Node中已经试过没问题的方法会在Electron中出问题,我此刻内心是 ...
分类:
其他好文 时间:
2020-02-03 15:39:31
阅读次数:
224