- 博客(12)
- 收藏
- 关注
转载 ObjectInputStream 死锁问题
<br /> 1. ObjectInputStream与ObjectOutputStream的顺序问题<br />在网络通讯中,主机与客户端若使用ObjectInputStream与ObjectOutputStream建立对象通讯,必须注重声明此两个对象的顺序。<br />如:<br />主机端先建立ObjectInputStream后建立ObjectOutputStream,则对应地客户端要先建立ObjectOutputStream后建立ObjectInputStream,否则会
2010-10-09 11:23:00
1009
原创 检查ObjectInputStream可读的方法
需求: 对一个ObjectInputStream只有可读内容的时候才调用readObject。通常做法:但直接使用available(), 返回值永远是0。不可行解决方案:保留InputStream对象, 检查该对象即可。InputStream rawins = socket.getInputStream();ObjectInputStream oins = new ObjectInputStream(rawins);if( rawins.available()>0 ) { myobj = (MyOb
2010-10-08 17:44:00
731
原创 创建nickname 整理版
how to create nickname on db2 which connects to another db2 server.
2010-07-20 11:36:00
1693
转载 HDFS针对多硬盘节点的存储策略
http://hi.baidu.com/thinkdifferent/blog/item/95de0e2416c4da3fc89559b8.html 对于HDFS针对多硬盘节点的存储策略,一直没有找到比较确实的依据,只有Hadoop官网上说过一句nodes with multiple disks should be managed internally(大致如此,懒得再看了)。今天
2010-05-07 11:05:00
751
转载 标点
+ plus 加号;正号- minus 减号;负号± plus or minus 正负号× is multiplied by 乘号÷ is divided by 除号= is equal to 等于号≠ is not equal to 不等于号≡ is equivalent to 全等于号≌ is equal to or approximately equal
2010-04-08 22:47:00
319
转载 64位汇编移植小结
http://zzhhui.blog.sohu.com/31474896.html 64位汇编移植小结这里的移植工作主要针对从32位x86cpu向intel及amd的64位cpu以及 xinxp64平台。编译环境为vs 2005.net,并且主要涉及汇编语言的移植。所用汇编语言编译器为yasm。因为对于C语言,在vs2005.net环境下可直接进行64位平台的编译,其
2010-04-08 14:12:00
2310
转载 restrict pointer
http://hi.baidu.com/ilotus_y/blog/item/bed71ed3c6d7f532960a16fc.html __restrict / restrict这是从IBM的一个网站上看来的:restrict只可以用在指针身上。如果一个指针被restrict修饰,那么就在它(这个指针)和它所指向的对象之间建立了一种特殊的联系──只能用这个指针或者这个指针的表
2010-03-17 16:16:00
678
转载 __buildin_expect 含义 抄
__builtin_expectPurpose Indicates that an expression is likely to evaluate to a specified value. The compiler may use this knowledge to direct optimizations. Prototype long __builtin_e
2010-03-17 15:17:00
734
原创 敏捷开发环境下的领导技能问题更受关注
http://java.youkuaiyun.com/index.php/2010/01/10/%E6%95%8F%E6%8D%B7%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E4%B8%8B%E7%9A%84%E9%A2%86%E5%AF%BC%E6%8A%80%E8%83%BD%E9%97%AE%E9%A2%98%E6%9B%B4%E5%8F%97%E5%85%B3%E6%B
2010-02-01 13:21:00
1098
转载 disk stripping and disk mirroring
[http://www.datarecoverysoftware1.com/data-recovery-faq/what-is-disk-stripping-and-disk-mirroring.html] What is disk stripping and disk mirroring?Disk striping is the technique of spre
2010-02-01 10:31:00
823
原创 throw null 的问题
On the Solaris build of the product it would core dump (crash) whenever there was an syntax error in the XML input files(It crashes on Solaris but not on Windows or Linux). #include int main(
2010-01-28 13:59:00
1410
转载 GDB功能收集
【http://www.maycode.com/index.php/linux/54-linuxdevelop/1234-debug.html】 使用 call 命令调用外部函数GDB 提供的 call 命令允许调试者在当前函数调用栈的栈顶调用函数,犹如在被调试的程序中执行的一般。比如想关闭某个文件(文件描述符为 fd ),那只需要在 gdb 中输入:(gdb) call
2010-01-26 16:59:00
502
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人