- 博客(7)
- 资源 (11)
- 收藏
- 关注
转载 线程池的实现(c语言)
/** threadpool.h */#include struct job { void *(*callback_function)(void *arg); //线程回调函数 void *arg; //回调函数参数 struct job *next;};struct threadpool;/* * threadpool_init * @thread_num:
2016-01-15 16:40:50 793
原创 使用gprof 或 valgrind查看函数调用频率及程序性能瓶颈调试
利用 gprof2dot 和graphviz 图形化定位linux c/c++系统性能瓶颈1 下载http://code.google.com/p/jrfonseca/wiki/Gprof2Dot 下载gprof2dot.pyhttp://www.graphviz.org/Download_source.php 下载graphviz-2.18.tar.gz
2016-01-15 14:15:09 1496
原创 linux x86_64 缓冲区溢出分析 以及 shellcode简介
/* buger.c */#include #include #include int main(void) { char buffer[128] = {0}; char *envp = NULL; printf("buffer address is: %p\n", &buffer); envp = getenv("KIRIKA"); if (envp) strcpy
2016-01-15 13:04:06 1868
转载 胡适:易卜生主义
一 易卜生最后所作的《我们死人再生时》(whenWeDeadAwaken)一本戏里面有一段话,狠可表出易卜生所作文学的根本方法。这本戏的主人翁,是一个美术家,费了全副精神,雕成一副像,名为“复活日”。 这位美术家自己说他这副雕像的历史道: 我那时年纪还轻,不懂的世事。我以为这“复活日”应该是一个极精致、极美的少女像,不带着一毫人世的经验,乎空地醒来,自然光明庄严,没有什么
2016-01-12 15:24:10 899
转载 胡适:非个人主义的新生活
这个题目是我在山东道上想着的,后来曾在天津学生联合会的学术讲演会讲过一次,又在唐山的学术讲演会讲过一次。唐山的演稿由一位刘赞清君记出,登在一月十五日《时事新报》上。我这一篇的大意是对于新村的运动贡献一点批评。这种批评是否合理,我也不敢说。但是我自信这一篇文字是研究考虑的结果,并不是根据于先有的成见的。? 本篇有两层意思。一是表示我不赞成现在一般有志青年所提倡,我所认为“个人主义的”新
2016-01-12 15:20:37 2167
原创 内核文件打开读写操作代码
#include #include #include #include #include #include MODULE_LICENSE("Dual BSD/GPL");static int doreadfile(void){ struct file *filp; mm_segment_t fs; loff_t pos = 0; struct inode *inode;
2016-01-11 16:22:12 367
原创 nodejs调用c++ addon的简单例子(带参数)
{ "targets": [ { "target_name": "loginfo", "sources": [ "logparse.cc" ] } ]}binding.gyp文件target_name字段是最后产生的 build/Release/loginfo.node node动态库的名字sources字段是源代码文件名
2016-01-08 11:44:41 2018
DM9000_Application_Notes_Ver_1_22.pdf
2015-12-08
core java 第八版代码
2015-02-14
core java 第七版代码
2015-02-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人