线程局部存储TLS, Thread Local
StorageTLS是C/C++运行库的一部分,而非操作系统的一部分。分为动态TSL 和 静态TLS一、动态TLS应用程序通过调用一组4个函数来使用动态TLS,
这些函数实际上最为DLL所使用。系统中的每个进程都有一组 正在使用标志(in-use fl...
分类:
编程语言 时间:
2014-06-09 21:59:12
阅读次数:
438
一般我们在使用http或者socket上传或者下载文件的时候,经常会在完成之后经行一次MD5值得校验(尤其是在断点续传的时候用的更多),校验MD5值是为了防止在传输的过程当中丢包或者数据包被篡改,在使用MD5之前呢我们应该先了解MD5的一些常识。MD5
百度百科简单的来说:1)、MD5是使用哈希算法...
分类:
移动开发 时间:
2014-06-09 21:40:35
阅读次数:
575
signal(SIGCHLD, SignalHandler);
注册软中断,对应的apiclose(socket);ret=fork(): 父进程,返回子进程的pid. 子进程返回0,
出错返回<0set_process_name("Name"), 当前进程名称dpopen, dlclose,dls...
分类:
系统相关 时间:
2014-06-09 18:24:11
阅读次数:
306
http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html从3.1版本开始,Lucene和Solr开始在64位的Windows和Solaris系统中默认使用MMapDirectory,从3.3版本开始,64位的Lin...
分类:
其他好文 时间:
2014-06-09 15:59:28
阅读次数:
352
BackTrack 5 开启SSHD服务1service ssh
start但启动后,仍然无法从远程连接,会有提示:1Read from socket failed: Connection reset by
peer这个时候需要生成密钥文件,方法如下123#ssh-keygen -t rsa -f ...
分类:
其他好文 时间:
2014-06-09 15:27:40
阅读次数:
211
相信不少初学手机联网开发的朋友都想知道Http与Socket连接究竟有什么区别,希望通过自己的浅显理解能对初学者有所帮助。1、TCP连接手机能够使用联网功能是因为手机底层实现了TCP/IP协议,可以使手机终端通过无线网络建立TCP连接。TCP协议可以对上层网络提供接口,使上层网络数据的传输建立在“无...
分类:
其他好文 时间:
2014-06-09 15:06:13
阅读次数:
276
1 //use this to implement platform-cross
new-line.2 StringBuilder sb = new StringBuilder();3
sb.append(System.getProperty("line.separator"));
分类:
其他好文 时间:
2014-06-09 00:35:09
阅读次数:
213
zzs@ubuntu:~$ sudo /opt/lampp/lampp
startapache[sudo] password for zzs:XAMPP is currently only availably as 32 bit
application. Please use a 32 bit co...
分类:
其他好文 时间:
2014-06-08 23:04:45
阅读次数:
288
Recently we looked across some of the most
common behaviors that our community of 25,000 users looked for in their logs
with a particular focus on web...
分类:
其他好文 时间:
2014-06-08 22:19:29
阅读次数:
438
There is an need of kill one port is already in
use. The command is : lsof -i:8000 There will be a list of: command pid user fd
type device size...
分类:
其他好文 时间:
2014-06-08 21:47:33
阅读次数:
366