上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
  2012年5月27日
摘要: 1. 互斥量,静态初始化:PTHREAD_MUTEX_INITIALIZERint pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr)ini pthread_mutex_destory(phread_mutex_t * mutex)int pthread_mutex_lock(pthread_mutex_t *mutex)int pthread_mutex_trylock(pthread_mutex_t *mutex)int pthread_mutex_unlock(pthread_mutex_ 阅读全文
posted @ 2012-05-27 20:05 leaving 阅读(213) 评论(0) 推荐(0)
摘要: Constants $、$n、$$、$$n、$_、$__、$cdir、$cwd、$fp、$pc、$ps、$spFile resolution file::variableGDB CommandsCommandPurposeExamplesbacktrace显示调用栈babreak在某处或者某行设置断点b main b parser.c:777continue从断点处继续执行contdelete删除断点d 3finish执行到结束fininfo breakpoints列出所有断点i brnext执行到下一语句,跳过neprint显示表达式/值print 1.0/2.0run执行或重新执行ru.. 阅读全文
posted @ 2012-05-27 14:30 leaving 阅读(233) 评论(0) 推荐(0)
  2012年5月24日
摘要: void (*singal(int signo, void (*func)(int)))(int);==>#define SIG_ERR (void (*)()) -1#define SIG_DFL (void (*)()) 0#define SIG_IGN (void (*)()) 1exec函数会将原先设置要捕获的信号处理函数都设置为默认处理不可重入函数:1. 使用静态数据结构, 2. 调用malloc或free, 3. 标准IO函数 阅读全文
posted @ 2012-05-24 23:44 leaving 阅读(176) 评论(0) 推荐(0)
  2012年5月20日
摘要: 进程线程描述forkpthread_create创建新的控制流exitpthread_exit从现有的控制流中退出waitpid/waitprhtead_join从控制流中得到退出状态atexitpthread_cancel_push注册在退出控制流时调用的函数getpidpthread_self获取控制流的IDabortpthread_cancel请求控制流的非正式退出进程控制:fork /vforkexec函数族exitwait/waitforabort线程控制:pthread_createpthread_exitpthread_joinpthread_cancel_pushpthread 阅读全文
posted @ 2012-05-20 16:12 leaving 阅读(240) 评论(0) 推荐(0)
摘要: fg %1 将第一个任务调度到前台 阅读全文
posted @ 2012-05-20 16:10 leaving 阅读(146) 评论(0) 推荐(0)
  2012年5月4日
摘要: 键值操作get keyset key valueincr keydecr keydel key [key ...]rename key newkeyrenamenx key newkeykeys patternincrby key incrementincrbyfloat key incrementappend key valuedecrby key decrementdump keyrestore key ttl serialized-valueexists keygetbit key offsetgetset key valuesetnx key valuemget key [key .. 阅读全文
posted @ 2012-05-04 23:10 leaving 阅读(1752) 评论(0) 推荐(0)
  2012年4月13日
摘要: adb shell setprop log.tag. DEBUGpublic static void debug(final Class myClass, final String tag,final String msg) { if (Log.isLoggable(tag, Log.DEBUG)) { Log.d(tag, myClass.getSimpleName() + “:” + msg); }} 阅读全文
posted @ 2012-04-13 00:24 leaving 阅读(247) 评论(0) 推荐(0)
  2012年4月8日
摘要: 1. 定义实体package ai.serv;import android.os.Parcel;import android.os.Parcelable;public class Person implements Parcelable { private String name; private int age; private String telNumber; @Override public int describeContents() { return 0; } @Override public void ... 阅读全文
posted @ 2012-04-08 11:10 leaving 阅读(320) 评论(0) 推荐(0)
  2012年4月7日
摘要: mysql版本 5.5.19 x64[client]default-character-set = utf8[mysqld]character-set-server = utf8 阅读全文
posted @ 2012-04-07 23:54 leaving 阅读(319) 评论(0) 推荐(0)
摘要: update-rc.d mysql start 80 2 3 4 5 . stop 40 0 1 6 .update-rc.d vsftpd start 85 2 3 4 5 . stop 35 0 1 6 .update-rc.d apache2 start 90 2 3 4 5 . stop 30 0 1 6 .update-rc.d tomcat start 95 2 3 4 5 . stop 25 0 1 6 . 阅读全文
posted @ 2012-04-07 22:15 leaving 阅读(492) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页