自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

snull.tar.bz2

snull linux3.x版本的代码,还有客户端测试程序,以及爪包结果,流程图分析等

2015-12-18

DM9000_Application_Notes_Ver_1_22.pdf

dm9000网卡驱动开发文档 The DM9000 is a fully integrated and cost-effective Fast Ethernet MAC controller with a general processor interface, an EEPROM interface, a 10/100M PHY and 4K-dword SRAM (3K-byte for TX FIFO and 13K-byte for RX FIFO). It is designed with low power and high performance process that supports 3.3V with 5V tolerant I/O. Besides, the DM9000 supports 8/ 16/ 32-bit processor interface to internal memory accesses for many different processors.

2015-12-08

core java 第八版代码

Core Java by Cay S. Horstmann and Gary Cornell was originally published in the Java series of Sun Microsystems Press and is now published by Prentice-Hall. The book is aimed at experienced programmers who want to learn how to write useful Java applications and applets. No hype, no toy code, no language lawyering, just solid facts and in-depth research to help you write real programs.

2015-02-14

core java 第七版代码

Core Java by Cay S. Horstmann and Gary Cornell was originally published in the Java series of Sun Microsystems Press and is now published by Prentice-Hall. The book is aimed at experienced programmers who want to learn how to write useful Java applications and applets. No hype, no toy code, no language lawyering, just solid facts and in-depth research to help you write real programs.

2015-02-14

[Linux命令详解词典].施威铭研究室.扫描版.part2

精选381个命令 详细列出1729个范例 提供3种查询索引 适合各种linux发行版 共两部分

2011-10-14

[Linux命令详解词典].施威铭研究室.扫描版.part1

精选381个命令 详细列出1729个范例 提供3种查询索引 适合各种linux发行版 共两部分

2011-10-14

Ubuntu 权威指南

从系统的安装,到用户的各种管理,以及系统的运作原理。都有一个完整的描述!

2011-09-30

C程序设计语言(第2版·新版)习题解答

C程序设计语言(第2版·新版)习题解答。供参考

2011-09-28

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除