- 博客(9)
- 收藏
- 关注
原创 5 things you didn't know about ... java.util.concurrent
http://www.ibm.com/developerworks/java/library/j-5things4.html?ca=drs-
2010-08-31 14:40:58 52
原创 Java synchronized methods
First, it is not possible for two invocations of synchronized methods on the same object to interleave. When one thread is executing a synchronized method for an object, all other threads tha...
2010-08-31 12:00:49 71
原创 java interrupt
See following tutorial from sun: An interrupt is an indication to a thread that it should stop what it is doing and do something else. It's up to the programmer to decide exactly how a thread respond...
2010-08-31 11:37:58 52
Java enum type
In the following example, Planet is an enum type that represents the planets in the solar system. They are defined with constant mass and radius properties. Each enum constant is declared with value...
2010-08-31 11:22:05 80
原创 Use JNI for safer java servers
http://www2.sys-con.com/itsg/virtualcd/Java/archives/0510/Silverman/index.html
2010-08-11 08:45:38 71
原创 errno.h
查看错误代码errno是调试程序的一个重要方法。当linuc C api函数发生异常时,一般会将errno变量(需include errno.h)赋一个整数值,不同的值表示不同的含义,可以通过查看该值推测出错的原因。在实际编程中用这一招解决了不少原本看来莫名其妙的问题。比较麻烦的是每次都要去linux源代码里面查找错误代码的含义,现在把它贴出来,以后需要查时就来这里看了。 以下来自linux 2...
2010-08-10 08:46:53 101
原创 How to use fallocate system call
/* * fallocate - utility to use the fallocate system call * * Copyright (C) 2008 Red Hat, Inc. All rights reserved. * Written by Eric Sandeen <sandeen@redhat.com> * * cvtnum routine ...
2010-08-07 22:19:05 240
原创 Test performance of allocating a zeroed file via various methods
/* * Test performance of allocating a zeroed file via various methods on * various file systems * * Copyright (C) 2009 Red Hat Inc. * Author(s): Amit Shah * * This program is f...
2010-08-07 22:09:37 78
原创 Java Native Interface (JNI) - JNI javah error : class file contains wrong class
http://forums.sun.com/thread.jspa?threadID=709403 On how java tools find user classes:A class/java file has a subpath name that reflects the class's fully-qualified name. For example, if the class...
2010-08-06 08:26:50 138
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人