JAVA线程 工作内存 主内存java内存模型中的八种操作:lock unlock read load
use assign store write八种基本操作必须满足的规则volatile当一个变量被定义成volatile之后,它将具备两种特性
一是保证此变量对所有线程的...
分类:
编程语言 时间:
2014-06-13 13:22:55
阅读次数:
294
官方帮助http://space.cnblogs.com/forum/topic/8550
注:如果自动配置没有成功,需要手动配置: a) 在“Type of weblog that you are
using”中选择“Custom(Metaweblog API)”。b) “Remote posti...
普通情况下,Response.Redirect 方法是在server端进行转向,因此,除非使用
Response.Write("") 方法外,是不能在新窗体打开所指定的 URL 地址的。可是,假设细致分析一下,假设设置 form 元素的 target
属性,还是有办法打开新窗体的。以下就是能够採用的...
Givennpairs of parentheses, write a function to
generate all combinations of well-formed parentheses.For example, givenn= 3, a
solution set is:"((()))...
分类:
其他好文 时间:
2014-06-11 12:25:51
阅读次数:
239
/** * ajax responseTEXT write; * @param request *
@param response * @param str */ public static void response(HttpServletReque...
分类:
Web程序 时间:
2014-06-11 11:35:20
阅读次数:
226
//js端function
println(string){ document.write(string+""); }//html端
分类:
其他好文 时间:
2014-06-10 00:10:30
阅读次数:
196
做法:总体想法是求出一个矩形的面积以及它所包含的矩形,然后用自己的面积减掉所包含的。主要问题是怎样求解它所包含的矩形。因为是没有相交点的,可以利用扫描线的方法去做,类似染色,当前段如果是x色,也就是第x个矩形,那么再把他染成y颜色时,说明x包含y,而当扫到y的上边时,这一段又恢复到x色。标记一下被包...
分类:
其他好文 时间:
2014-06-08 06:31:04
阅读次数:
244
一、制作 U 盘系统启动盘 1、从 App Store 上下载 OS Application。
2、打开 Terminal,设备显示隐藏文件。$ defaults write ~/Library/Preferences/com.apple.finder
AppleShowAllFiles -bo.....
分类:
其他好文 时间:
2014-06-08 06:21:44
阅读次数:
279
Follow up for "Search in Rotated Sorted
Array":What ifduplicatesare allowed?Would this affect the run-time complexity?
How and why?Write a function to...
分类:
其他好文 时间:
2014-06-08 01:19:29
阅读次数:
320
1. Javascript 返回上一页history.go(-1), 返回两个页面:
history.go(-2);2. history.back().3. window.history.forward()返回下一页4.
window.history.go(返回第几页,也可以使用访问过的URL)例:...
分类:
Web程序 时间:
2014-06-07 22:12:45
阅读次数:
338