LockSupport类是Java6(JSR166-JUC)引入的一个类,提供了基本的线程同步原语。LockSupport实际上是调用了Unsafe类里的函数,归结到Unsafe里,只有两个函数:
?
1
2
public
native
void
unpark(Thread jthread);
public...
分类:
编程语言 时间:
2014-08-05 15:52:40
阅读次数:
341
http://nzpcmad.blogspot.co.nz/2013/06/saml-saml-stack.html You have an application – .NET, JAVA whatever. You want this to be a SP and need to connect...
分类:
其他好文 时间:
2014-08-05 13:37:59
阅读次数:
190
在开机时,系统会启动PhoneApp类,那是因为在AndroidManifest.xml文件中配置了
<application
android:name="PhoneApp"
android:icon="@drawable/ic_launcher_phone"
android:label="@string/phoneAppLabel"...
分类:
移动开发 时间:
2014-08-05 11:17:49
阅读次数:
250
An example of in-order traversal application. My intuition is that, we have to serialize it into an array and check, but in-order traversal does exact...
分类:
其他好文 时间:
2014-08-05 03:03:48
阅读次数:
241
【UIKit】AppDelegate在应用程序启动完毕后调用(只会调用一次,第一次打开程序的时候才会调用)- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)la...
分类:
移动开发 时间:
2014-08-05 00:23:48
阅读次数:
271
The thought of the algorithm is as follows:(1) Initially set up an empty stack, sequentially read in parentheses;(2) If it is a right parentheses, or ...
分类:
移动开发 时间:
2014-08-04 21:26:37
阅读次数:
340
说实话,我们这次开发移动端的项目,整个项目组的人都是第一次,最初立项的时候为是选择native app和web app还争论了一番,最后综合考虑,我们选择了web(我们选择了h5)开发。但从这两种开发模式的特点来说,从它们诞生之日起就开始了不断的争论,孰好孰坏,本文不作探讨,只是简单罗列下本人开发遇...
分类:
移动开发 时间:
2014-08-04 21:05:27
阅读次数:
430
HTML中的form表单有一个关键属性 enctype=application/x-www-form-urlencoded 或multipart/form-data。1、enctype="application/x-www-form-urlencoded"是默认的编码方式,当以这种方式提交数据时,H...
分类:
Web程序 时间:
2014-08-04 21:04:17
阅读次数:
251
最近搞了个 os x Server 把自己mac 配个web 服务器。研究下 ios 企业级应用发布。网上很多地方都是这个:对于 OS X Server,将以下 MIME 类型添加到 Web 服务的“MIME Types”(MIME 类型)设置中:application/octet-stream i...
分类:
其他好文 时间:
2014-08-04 20:58:08
阅读次数:
221
一、下载任意文件: Header("Content-type: application/octet-stream"); $ua = $_SERVER["HTTP_USER_AGENT"]; $encoded_filename = rawurlencode($fil...
分类:
Web程序 时间:
2014-08-04 20:53:47
阅读次数:
628