# https://segmentfault.com/q/1010000010559838 import asyncio import threading import random async def fn(name,qu): while True: print(name,"ready to wo... ...
分类:
其他好文 时间:
2018-12-13 19:29:16
阅读次数:
539
Tomcat是Apache基金组织下的开源项目,性质是一个Web服务器。
分类:
其他好文 时间:
2018-12-13 17:03:49
阅读次数:
139
import asyncio from threading import Thread import time t=time.time() async def inspect(i): print('parse', i, time.time()-t) async def produce(i,sem):... ...
分类:
其他好文 时间:
2018-12-13 16:32:26
阅读次数:
271
"https://stackoverflow.com/questions/4424193/what happens to mutex when the thread which acquired it exits?noredirect=1&lq=1" 解释当一个lock了mutex的线程退出了,却没 ...
分类:
编程语言 时间:
2018-12-13 16:20:23
阅读次数:
245
CountDownLatch的原理 这个类一般的应用场景为:一个线程等待另外N(N>=1)个线程的事情搞完了,自己再搞事情。具体应用代码大致如下: public class CountDownLatchTest { private static final int THREAD_COUNT = 10 ...
分类:
其他好文 时间:
2018-12-13 14:27:05
阅读次数:
180
${appName} logs/${appName}_%d{yy-MM-dd} 7 [%-5level] %d{HH:mm:ss.SSS} [%thread] %logger{... ...
分类:
Web程序 时间:
2018-12-13 12:15:34
阅读次数:
729
入行一年多,在这个IT行业,开发技术主要使用的是.NET,而对应使用的高级语言自然就是c#了。从2017年7月入职后,在平时的工作过程中,只记得使用一些方法去完成逻辑功能,而很少去深究一些语法特性,特别是没有去关注为什么会去使用这些语法。现在,入职一家新公司,那就从现在开始,一有空就做一些学习记录, ...
Pseudoregister Description @ERR Last error value; the same value returned by the GetLastError() API function @TIB Thread information block for the cur ...
分类:
其他好文 时间:
2018-12-13 11:27:13
阅读次数:
168
有了GIL还是会出现数据不安全,所以还是要用锁 import time from threading import Thread,Lock n = 100 def func(lock): global n with lock: tmp = n-1 n = tmp l = [] lock = Lock ...
分类:
编程语言 时间:
2018-12-13 01:14:14
阅读次数:
228
java - Tomcat - maxThreads vs maxConnections - Stack Overflowhttps://stackoverflow.com/questions/24678661/tomcat-maxthreads-vs-maxconnections Apache T ...
分类:
其他好文 时间:
2018-12-12 16:25:03
阅读次数:
195