- 博客(4)
- 问答 (3)
- 收藏
- 关注
原创 操作系统---进程
内存中的进程:进程中断时(如时间片到期),保存当前进程状态运用的是PCB数据结构保存进程上下文:****进程调度:1、非抢占式(批处理系统)------------------------>>调度标准是:先来先服务;最短作业优先2、抢占式(交互系统)----->>调度标准:1、公平(合理分配CPU)2、响应时间短(用户输入到执行完成的时间短)3、吞吐量大(单位时间完成的任务...
2018-04-18 18:03:11
277
原创 如何设置线程池的常规变量
Parameters: corePoolSize - the number of threads to keep in the pool, even if they are idle, unless allowCoreThreadTimeOut is set. (If the number of threads to keep in the pool less than corePoolSi...
2018-04-18 16:38:21
453
原创 HttpClient解决并发不足导致交易掉单问题
主要解决金融上游并发不足的问题:此处分为公有和私有连接池:私有连接池:注:首先要在static静态池中放一个存储http连接池的Map private final static Map<String,PoolingHttpClientConnectionManager> ClientPoolMap = new HashMap<String,PoolingHttpClientCon...
2018-04-18 16:35:34
770
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人