flask 并发 1. 非并发 非并发时的情况: 注意需要在run中声明threaded=False 对,flask默认启用多线程;而flask_script默认不启用多线程。。。 @app.route("/async") def longtimetask(): time.sleep(20) ret ...
分类:
其他好文 时间:
2020-05-02 22:39:23
阅读次数:
165
#include <bits/stdc++.h> using namespace std; #define int long long const int maxn = 3e3 + 10; int n,a[maxn]; int solve(int l,int r){ int minn = 1e9 + ...
分类:
其他好文 时间:
2020-05-02 21:18:45
阅读次数:
61
回顾: 生产者消费者模型 主要为了解决强耦耦合的问题 队列 from multiprocessing import Queue 先进先出 队列本身是安全的 from multiprocessing import JoinableQueue task_done() 每消费一个数据,就返回一个标识 jo ...
分类:
编程语言 时间:
2020-05-02 20:56:22
阅读次数:
66
一 include 当项目越大,tasks越多的时候。如果将多有的task写入一个playbook中,可读性很差,就需要重新组织playbook 可以把一个playbook分成若干份晓得palybook文件,在主配置文件中,把小文件引入进来,就是include include tasks [root ...
分类:
其他好文 时间:
2020-05-02 20:44:25
阅读次数:
68
The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of inte ...
分类:
其他好文 时间:
2020-05-02 15:11:59
阅读次数:
52
讲了手写了storm wordcount程序 蕴含了很多的知识点 (1)Spout(2)Bolt(3)OutputCollector,Declarer(4)Topology(5)设置worker,executor,task,流分组 storm的核心基本原理,基本的开发,学会了 storm集群部署,怎 ...
分类:
编程语言 时间:
2020-05-02 11:51:07
阅读次数:
65
一、获取我的流程实例信息 /learun/adms/workflow/mylist 参数: pagination:分页参数; rows: 每页行数; page: 当前页; sidx: 排序列; sord: 排序类型; queryJson:查询条件; 二、获取我的任务列表 /learun/adms/w ...
分类:
其他好文 时间:
2020-05-01 12:22:23
阅读次数:
351
"""1、单列模式是什么列子:电脑上有一个回收站,在操作系统中,回收站只有一个实例,整个系统中唯一实例,而且是自行提供的实例,因此回收站是单例模式应用。单列模式是指:保证一个类仅有一个实例,而且自行实例化并向整个系统提供这个实例,这个类称为单列类。总线对象,就是一个单列,它仅有一个是咧,每个线程对总 ...
分类:
其他好文 时间:
2020-05-01 01:16:20
阅读次数:
53
1.注释(::注释内容(第一个冒号后也可以跟任何一个非字母数字的字符)rem注释内容(不能出现重定向符号和管道符号))rem注释或者::注释(建议用这个)===========================================================================================================================
The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. ...
分类:
其他好文 时间:
2020-04-30 15:15:38
阅读次数:
44