(手机横屏看源码更方便)注:java源码分析部分如无特殊说明均基于java8版本。简介Java的线程池是块硬骨头,对线程池的源码做深入研究不仅能提高对Java整个并发编程的理解,也能提高自己在面试中的表现,增加被录取的可能性。本系列将分成很多个章节,本章作为线程池的第一章将对整个线程池体系做一个总览。体系结构上图列举了线程池中非常重要的接口和类:(1)Executor,线程池顶级接口;(2)Exe
分类:
编程语言 时间:
2019-11-05 10:50:43
阅读次数:
72
[Hdu3887]Counting OffspringYou are given a tree, it’s root is p, and the node is numbered from 1 to n. Now define f(i) as the number of nodes whose nu ...
分类:
编程语言 时间:
2019-11-04 21:37:38
阅读次数:
98
#_author:Administrator#date:2019/11/4#时间模块import time# time - This module provides various functions to manipulate time values.#(1)print(help(time))# ...
分类:
其他好文 时间:
2019-11-04 18:00:37
阅读次数:
82
user wls81 wls;worker_processes 5; error_log logs/error.log; pid logs/nginx.pid; events { use epoll; worker_connections 200000; accept_mutex off;} htt ...
分类:
其他好文 时间:
2019-11-04 13:37:44
阅读次数:
106
After winning gold and silver in IOI 2014, Akshat and Malvika want to have some fun. Now they are playing a game on a grid made of n horizontal and m ...
分类:
其他好文 时间:
2019-11-03 20:34:00
阅读次数:
101
主席树静态序列查区间第k大 struct tree{ int l,r,sum; }t[100010]; void change(int &now,int pre,int l,int r,int k){ now=++cnt; t[now]=t[pre]; t[now].sum++; int mid=( ...
分类:
其他好文 时间:
2019-11-03 18:43:33
阅读次数:
119
博客地址:https://ainyi.com/79 日常浏览网页中,在进行窗口的 resize、scroll 或者重复点击某按钮发送请求,此时事件处理函数或者接口调用的频率若无限制,则会加重浏览器的负担,界面可能显示有误,服务端也可能出问题,导致用户体验非常糟糕 此时可以采用 debounce(防抖 ...
分类:
其他好文 时间:
2019-11-02 17:47:52
阅读次数:
146
第一部分 Python基础篇(80题) 为什么学习Python? 通过什么途径学习的Python? Python和Java、PHP、C、C#、C++等其他语言的对比? 简述解释型和编译型编程语言? Python解释器种类以及特点? 位和字节的关系? b、B、KB、MB、GB 的关系? 请至少列举5个 ...
分类:
编程语言 时间:
2019-11-02 13:38:51
阅读次数:
63
mysql时间日期函数 now(), current_timestamp(); -- 当前日期时间 current_date(); -- 当前日期 current_time(); -- 当前时间 date('yyyy-mm-dd hh:ii:ss'); -- 获取日期部分 time('yyyy-mm ...
分类:
数据库 时间:
2019-11-02 12:18:26
阅读次数:
99
题目描述 Barney was hanging out with Nora for a while and now he thinks he may have feelings for her. Barney wants to send her a cheesy text message and w ...
分类:
其他好文 时间:
2019-11-02 09:30:59
阅读次数:
87