一、Volley框架图
根据图简单猜测Volley工作的流程,见右下角的注释,蓝色表示主线程(main thread),绿色表示缓存线程(cache thread),黄色表示网络线程(network threads);
再寻找图中的关键字:queue(RequestQueue),cache queue,CacheDispatcher,NetworkDispatcher;
...
分类:
其他好文 时间:
2015-06-19 11:53:27
阅读次数:
165
由innodb_purge_threads控制purge线程数。
(>= 5.6.5)的版本中该值默认为1,最大值为32。默认值1表示innodb的purge操作被分离到purge线程中,master
thread不再做purge操作。
The
number of background threads devoted to the InnoDB purge operatio...
分类:
数据库 时间:
2015-06-13 01:13:24
阅读次数:
218
mysql体系结构mysql存储引擎结构体系结构带来的调优体会:per-threads-bufferr位每个连接会会话的内存,不宜过大querycache建议关闭,否则在频繁更新的系统中易出现Waitingforquerycachelockread_buffer_size用于表的顺序扫描read_rnd_bufer_size该参数用于表的随机读取sort_buf..
分类:
数据库 时间:
2015-06-12 15:16:05
阅读次数:
197
最近在温习pthread的时候,忽然发现以前对pthread_cond_wait的了解太肤浅了。昨晚在看《Programming With POSIX Threads》的时候,看到了pthread_cond_wait的通常使用方法:pthread_mutex_lock();while(conditi...
分类:
其他好文 时间:
2015-06-08 16:58:08
阅读次数:
201
by Saul Mora 原文链接:http://www.cimgf.com/2011/05/04/core-data-and-threads-without-the-headache/
我知道我曾经提到我要写一篇关于定制fetch requests的文章,然而,在我为Active Record Fetching project(现在已经改名为MagicalRecord)编写了一些代码之后,我觉...
分类:
编程语言 时间:
2015-06-08 10:00:14
阅读次数:
156
Executors包含一系列静态方法,可以用于构建线程池。返回实现了 ExecutorService 接口的对象:newCachedThreadPoolnewFixedThreadPool(int threads)newSingleThreadPool返回实现了ScheduledExecutorSe...
分类:
编程语言 时间:
2015-06-06 21:59:10
阅读次数:
111
最近,公司线上tomcat经常无缘无辜宕机,总结了一下定位问题的方法,仅供参考:
报错信息:
Maximum number of threads (200) created for connector with address null and port 9443
# There is insufficient memory for the Java Runtime Environment t...
分类:
其他好文 时间:
2015-06-03 13:47:45
阅读次数:
138
#!perl
use warnings;
#use strict;
use threads;
use Thread::Semaphore;
use File::Basename qw(basename);
die "perl $0 \n" if @ARGV != 2;
my $semaphore = Thread::Semaphore->new($ARGV[1]);
my $id = bas...
分类:
编程语言 时间:
2015-06-01 16:45:13
阅读次数:
856
线程(thread)作为Lua中一种基本的数据类型,它代表独立的执行线程(independent threads of execution),线程类型是实现协程(coroutines)的基础。本文将介绍Lua虚拟中的全局状态和线程的关系,以及从源码角度来看其数据结构。...
分类:
编程语言 时间:
2015-05-30 21:14:29
阅读次数:
843
vi check_tomcat_threads.c
#include
#include
#include
#define OK 0
#define WARNING 1
#define CRITICAL 2
#define UNKNOWN 3
#define LEN 1000
#define MIN_LEN 100
#define CMD1 "p...
分类:
移动开发 时间:
2015-05-27 01:02:42
阅读次数:
208