Programming Assignment 2: Deques and Randomized Queues Write a generic data type for a deque and a randomized queue. The goal of this assignment is to ...
分类:
其他好文 时间:
2018-06-26 00:44:49
阅读次数:
225
多进程multiprocessing >>> 两进程间的通讯 不同进程间内存是不共享的,要想实现两个进程间的数据交换,可以用以下方法: 1.进程Queues 2.Pipe 3.Managers 进程同步:主要功能是屏幕锁 进程池 进程池内部维护一个进程序列,当使用时,则去进程池中获取一个进程,如果进 ...
分类:
编程语言 时间:
2018-06-25 22:53:25
阅读次数:
206
ASP.NET 提供三种用于在出现错误时捕获和响应错误的主要方法:Page_Error 事件、Application_Error 事件以及应用程序配置文件 (Web.config)。 如果您不调用 Server.ClearError 或者捕获 Page_Error 或 Application_Err ...
分类:
Web程序 时间:
2018-06-25 12:54:38
阅读次数:
197
1.安装Nginx 使用Nginx官方提供的rpm包 [root@nginx ~]# cat /etc/yum.repos.d/nginx.repo [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/7/$basearc ...
分类:
其他好文 时间:
2018-06-19 16:21:44
阅读次数:
144
Nginx Errors upstream response cache error *2470578 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/6/10/0000010106 w ...
分类:
系统相关 时间:
2018-06-18 13:25:43
阅读次数:
364
Dispatch Queues and Thread Safety It might seem odd to talk about thread safety in the context of dispatch queues, but thread safety is still a releva ...
分类:
其他好文 时间:
2018-06-12 18:35:04
阅读次数:
167
本文不涉及复杂的底层数据结构,通过explain解释SQL,并根据可能出现的情况,来做具体的优化,使千万级表关联查询第一页结果能在2秒内完成(真实业务告警系统优化结果)。 需要优化的查询:使用explain 出现了Using ...
分类:
数据库 时间:
2018-06-11 15:52:27
阅读次数:
189
一、为什么要用小表驱动大表 1、驱动表的定义 当进行多表连接查询时, [驱动表] 的定义为: 1)指定了联接条件时,满足查询条件的记录行数少的表为[驱动表] 2)未指定联接条件时,行数少的表为[驱动表](Important!) 忠告:如果你搞不清楚该让谁做驱动表、谁 join 谁,请让 MySQL ...
分类:
数据库 时间:
2018-06-11 15:43:21
阅读次数:
181
需求:验证过期的证书在系统中不能使用。 问题:如何生成过期的证书呢? 解决方法:1.调整系统时间 2.生成证书 3.验证证书startdate 和 enddate 是否符合你的预期 1.调整系统时间 1.Set date from the command line: 2.Set time from ...
分类:
系统相关 时间:
2018-06-09 14:42:17
阅读次数:
238
优化GROUP BY语句 默认情况下,MySQL对所有GROUP BY col1,col2...的字段进行排序。这与在查询中指定ORDER BY col1,col2...类似。因此,如果显式包括一个包含相同的列的ORDER BY子句,则对MySQL的实际执行性能没有什么影响。 如果查询包括GROUP ...
分类:
数据库 时间:
2018-06-08 16:00:00
阅读次数:
197