- 博客(29)
- 资源 (1)
- 收藏
- 关注
原创 很好的python教程
http://www.kanbuchuan.com/page/1/archives/2280.html#comments
2017-03-12 16:53:56 430 1
原创 signal
a signal is an event generated by the UNIX and LINUX systems in response to some condition , upon reveipt of which a process may in turn take some action,.there are so many signals which is included i
2014-02-17 15:31:11 598
原创 thread
what is a thread? multiple strands of execution in a single program are called threads. a more precise definition is that a thread is a sequence of control within a process. compared with process , th
2014-02-17 15:29:01 588
原创 process
after the introdution about the fork() function , i do think that you have find that the result these two process print is so messy , how to make it neat , let do it now.in > there are three fun
2014-02-17 15:26:42 525
转载 segment fault
一 造成segment fault,产生core dump的可能原因1.内存访问越界 a) 由于使用错误的下标,导致数组访问越界 b) 搜索字符串时,依靠字符串结束符来判断字符串是否结束,但是字符串没有正常的使用结束符 c) 使用strcpy, strcat, sprintf, strcmp, strcasecmp等字符串操作函数,将目标字符串读/写爆。应该使用st
2014-02-12 23:55:18 476
原创 fork函数分析举例
as we all know the exec() family function can only take the executable file to create a new process which replace the original one even the PID is the same to the original one, in contrast the fork fu
2014-02-06 18:07:07 501
转载 execve系统调用分析
execve系统调用分析来源: ChinaUnix博客 日期: 2007.02.15 12:29 (共有条评论) 我要评论 Linux提供了execl、execlp、execle、execv、execvp和execve等六个用以执行一个可执行文件的函数(统称为exec函数,其间的差异在于对命令行参数和环境变量参数的传
2014-02-06 14:54:06 829
转载 linux 服务器监控工具
下面是我想呈现给你的4个强大的监控工具。htop – 交互式进程查看器你可能知道在机器上查看实时进程的标准工具top。如果不知道,请运行$ top看看,运行$ man top阅读帮助手册。htop是top的扩展版本,有更丰富的概貌(例如全命令、可视化、图形用户界面gui和用户界面ui),有鼠标点击交互(译者注:看下面的截图,指的是最上面的列标题如CPU%、MEM%等可以通过
2014-02-02 21:24:57 480
原创 begin linux programming
Recently,i begin to learn programming in linux , so i choose the book with the name of > as my first book of exploiting programming under linux . here , i will list some of the basic operations under
2014-02-01 13:35:48 732
原创 基于链表实现队列
#ifndef LINK_QUEUE_H#define LINK_QUEUE_Hstruct linkqueue{ struct linkqueue * next; int content;};struct linkqueue * pop();void push(struct linkqueue * p);void display();void init(int * arra
2014-01-29 08:21:08 421
原创 基于链表实现堆栈
#ifndef LINK_STACK_H#define LINK_STACK_Hstruct linkstack{ struct linkstack * next; int content;};void display();void push(struct linkstack * node);struct linkstack * pop();void init(int * ar
2014-01-28 22:09:13 534
原创 排序二叉树的构造与遍历
#ifndef SORT_BINARY_TREE_H#define SORT_BINARY_TREE_Hstruct sbt{struct sbt * left;struct sbt * right;int content;};struct sbt * init(int * p ,int n);struct sbt * compare(struct sbt * root , s
2014-01-28 12:07:25 698
原创 完全二叉树的构造与遍历
#ifndef BinaryTree_H_#define BinaryTree_H_struct binarytree { struct binarytree * left; struct binarytree * right; char content;};int length(char * array);struct binarytree * init(char * p ,
2014-01-27 19:02:45 1396
原创 josephus problem
#include #include struct node { int num; struct node * next;};int main(){ int N; int M; printf("please enter the nubmer of N:\n"); scanf("%d",&N); printf("please enter the nubmer of M:\n")
2014-01-27 09:49:57 469
转载 字符串字面值
一、字符串字面值字符串字面值是一串常量字符,字符串字面值常量用双引号括起来的零个或多个字符表示,为兼容C语言,C++中所有的字符串字面值都由编译器自动在末尾添加一个空字符。字符串没有变量名字,自身表示自身"Hello World!" //simple string literal"" //empty string literal"\nCC\toptions\tfile.[cC]
2014-01-23 19:57:16 1202
原创 快速排序
#include /* *speed sort *author @ suilingxi *2014-1-15*/void speed_sort(int * array , int high ,int low){ /* record the position of the array we want to sort */ int i=low; int j=high; int
2014-01-15 15:02:15 424
原创 折半插入排序算法
#include /* *binary insert sort algorithm *author @ suilingxi *2014-1-11*/int binary_insert_sort(int * array , int low , int high , int mdm){ while(low<=high){ if(mdm<*(array+(high+low)/2
2014-01-12 18:46:25 554
转载 rsync 的核心算法
rsync是unix/linux下同步文件的一个高效算法,它能同步更新两处计算机的文件与目录,并适当利用查找文件中的不同块以减少数据传输。rsync中一项与其他大部分类似程序或协定中所未见的重要特性是镜像是只对有变更的部分进行传送。rsync可拷贝/显示目录属性,以及拷贝文件,并可选择性的压缩以及递归拷贝。rsync利用由Andrew Tridgell发明的算法。这里不介绍其使用方法,只介绍其
2014-01-09 12:39:03 431
转载 linux kernal
成为Linux内核高手的四个方法2014/01/08 | 分类: 程序员 | 0 条评论 | 标签: HACKER, KERNEL, LINUX, 内核分享到:19本文由 伯乐在线 - haofly 翻译自 Julia Evans。欢迎加入技术翻译小组。转载请参见文章末尾处的要求。(之前我在CUSEC网站发表了关于内核并不可怕的一篇文章,本文
2014-01-08 18:41:22 798
转载 VIM教程
简明 Vim 练级攻略2011年9月7日陈皓发表评论阅读评论290,597 人阅读 vim的学习曲线相当的大(参看各种文本编辑器的学习曲线),所以,如果你一开始看到的是一大堆VIM的命令分类,你一定会对这个编辑器失去兴趣的。下面的文章翻译自《Learn Vim Progressively》,我觉得这是给新手最好的VIM的升级教程了,没有列举所有的命令,只是
2014-01-07 18:56:32 387
转载 onlinepythontutor
LEARN programming by visualizing code executionOnline Python Tutor is a free educational tool created by Philip Guo that helps students overcome a fundamental barrier to learning programming: unde
2013-12-20 17:59:58 882
转载 垃圾收集器
每当我倍感压力以及有很多事情要做的时候,我总是有这样一种反常的反应,那就是希望做一些其他的事情来摆脱这种状况。通常情况下,这些事情都是些我能够编写并实现的独立的小程序。一天早上,我几乎要被一堆事情给整疯了——我得看一本书、处理一些工作上的事情、还要准备一场Strange Loop的演讲,然后这时我突然想到:“我该写一个垃圾收集器了”。是的,我知道那一刻让我看上去有多疯狂。不过我
2013-12-20 17:43:31 412
转载 C语言深入学习系列 - 字节对齐&内存管理
用C语言写程序时需要知道是大端模式还是小端模式。 所谓的大端模式,是指数据的低位保存在内存的高地址中,而数据的高位,保存在内存的低地址中;所谓的小端模式,是指数据的低位保存在内存的低地址中,而数据的高位保存在内存的高地址中。 为什么会有大小端模式之分呢?这是因为在计算机系统中,我们是以字节为单位的,每个地址单元都对应着一个字节,一个字节为8
2013-12-18 20:56:51 534
转载 Open Source on Github
As a senior Computer Science student, I am constantly hearing about how great it is to contribute to open source projects on github. Many job listings list it as a qualification or a “plus”, and it is
2013-08-23 21:41:58 527
原创 N皇后问题
public class queen{static int N;public static void main(String[] args){N=4;new queen().queue(1);}public int queue(int k){int number = 0;if(k>N){number++;System.out.print(numbe
2013-05-25 22:07:05 454
原创 百位计算器设计
/*the main calculate function*/ import java.math.*;public class calc { static calc cal = null; double result = 1 ; BigDecimal num1 ; BigDecimal n
2012-12-30 22:43:42 591
原创 计算机操作系统(第三版)
第一章 操作系统引论 1,操作系统的定义:合理组织计算机工作流程,高效管理系统资源为用户提供方便灵活使用环境的软件 2,操作系统的目的: 提高计算机的系统资源利用率和系统的吞吐量问题 (吞吐量:单位时间内运行作业的个数) 3,操作系统的作用:a,OS作为用户与计算机硬件系统间的接口 ...
2012-11-09 13:24:27 3357
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人