摘要: 初学者学习 Android 开发,有什么好网站推荐?前段日子一直在看安卓巴士这个网站,但网站突然进行改版,很多内容都找不到了,一下子怅然若失起来1 条评论分享按投票排序按时间排序50 个回答yava,半瓶水fei shen、许之上、李亚明等人赞同Android Developers官方文档Stack... 阅读全文
posted @ 2016-01-20 16:46 Struts-pring 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 使用httpClient可模拟请求Url获取资源,使用单线程的请求速度上会有一定的限制,参考了Apache给出的例子,自己做了测试实现多线程并发请求,以下代码需要HttpClient 4.2的包,可以在http://hc.apache.org/downloads.cgi下载1、并发请求package... 阅读全文
posted @ 2016-01-20 16:33 Struts-pring 阅读(556) 评论(0) 推荐(0) 编辑
摘要: CountDownLatch,一个同步辅助类,在完成一组正在其他线程中执行的操作之前,它允许一个或多个线程一直等待。主要方法public CountDownLatch(int count);public voidcountDown();public voidawait() throwsInterru... 阅读全文
posted @ 2016-01-20 16:29 Struts-pring 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 线程中断主要设涉及3个方法:实例方法interrupt、静态方法interrupted、实例方法isInterrupted:实例方法interrupt作用:此方法调用后,如果调用实例线程当前正在调用wait、join、sleep、或在可中断的InterruptibleChannelIO操作、或阻塞在... 阅读全文
posted @ 2016-01-20 15:11 Struts-pring 阅读(215) 评论(0) 推荐(0) 编辑
摘要: ## This file is detritus from various testing attempts# the values below may change, and often do not represent# reasonable values for the parameters.... 阅读全文
posted @ 2016-01-20 09:27 Struts-pring 阅读(376) 评论(0) 推荐(0) 编辑
摘要: c3p0号称是java界最好的数据池。c3p0的配置方式分为三种,分别是1.setters一个个地设置各个配置项2.类路径下提供一个c3p0.properties文件3.类路径下提供一个c3p0-config.xml文件我们主要说下c3p0-config.xml配置://默认池配置 rootjava... 阅读全文
posted @ 2016-01-20 09:27 Struts-pring 阅读(284) 评论(0) 推荐(0) 编辑