自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(56)
  • 资源 (4)
  • 收藏
  • 关注

转载 解决ssh连接延时

<br /> <br />原文链接http://www.intgoo.com/100121.html<br /> <br />有时候ssh会遇到一种情况,ssh连接服务器总要十几秒或者几十秒。通常这个时<br />候会误以为是是连不上去的<br />很多时候是ssh的DNS反解析,反解析没有找到你本机的hostname和ip对应,这样<br />就会造成连接延时。<br />我暂时试过的方法主要有以下几种。<br />1.修改服务器配置文件/etc/ssh/sshd_config,将#UseDNS

2011-03-06 22:03:00 1313

原创 linux echo

linux echo功能说明:显示文字。  语   法:echo [-ne][字符串]或 echo [--help][--version]  补充说明:echo会将输入的字符串送往标准输出。输出的字符串间以空白字符隔开, 并在最后加上换行号。  参   数:-n 不要在最后自动换行        -e 若字符串中出现以下字符,则特别加以处理,而不会将它当成一般          文字输出:    

2009-08-06 10:11:00 582

转载 Sysklogd 系统日志记录器

由于论坛排版效果不理想,而且我也只在我的个人空间对文章进行后继更新,所以建议直接到我的空间查看此文:《Sysklogd 系统日志记录器》http://lamp.linux.gov.cn/Linux/sysklogd.html概述日志对于系统的重要性不言而喻,比如对于故障诊断和入侵检测,没有日志几乎寸步难行。Linux系统当中最流行的日志记录器是 Sysklogd ,当前最新版本是 1.5 。Sys

2009-07-20 09:29:00 836

转载 c语言——变长函数参数

友情链接:jesse博客网址http://www.cublog.cn/u/22878/showart_201409.html  例子: va_list   ap;                   //声明一个变量来转换参数列表   va_start(ap,fmt);               //初始化变量   va_end(ap);                   

2009-07-15 10:57:00 559

原创 linux-pty.c

/* *  linux/kernel/chr_drv/pty.c * *  (C) 1991  Linus Torvalds *//* *    pty.c * * This module implements the pty functions *    void mpty_write(struct tty_struct * queue); *   

2009-06-03 17:20:00 972

原创 linux-tty_ioctl.c

/* *  linux/kernel/chr_drv/tty_ioctl.c * *  (C) 1991  Linus Torvalds */#include #include #include #include #include #include #include #include extern int session_of_p

2009-06-03 17:15:00 2115

原创 linux-tty_io.c

/* *  linux/kernel/tty_io.c * *  (C) 1991  Linus Torvalds *//* * tty_io.c gives an orthogonal feeling to ttys, be they consoles * or rs-channels. It also implements echoing, cooked

2009-06-03 16:25:00 1969

原创 linux-serial.c

/* *  linux/kernel/serial.c *                                                //--实现系统串行口初始化 *  (C) 1991  Linus Torvalds *//* *    serial.c * * This module implements the rs232 io fun

2009-06-03 14:18:00 1476 1

原创 linux-console.c

/* *  linux/kernel/console.c *                                                //--实现终端屏幕写函数con_write() *  (C) 1991  Linus Torvalds *//* *    console.c * * This module implements the

2009-06-03 14:10:00 1516

原创 linux-floppy.c

 /* *  linux/kernel/floppy.c *                                            //--软盘控制驱动程序 *  (C) 1991  Linus Torvalds *//* * 02.12.91 - Changed to static variables to indicate need for rese

2009-06-03 14:09:00 1211

原创 linux-keyboard.S

/* *  linux/kernel/keyboard.S *                                    #--键盘驱动汇编程序,主要是键盘中断处理程序 *  (C) 1991  Linus Torvalds *//* *    Thanks to Alfred Leung for US keyboard patches *        W

2009-06-03 14:09:00 1909

原创 linux-ll_rw_blk.c

/* *  linux/kernel/blk_dev/ll_rw.c *                        //--用于执行低层块设备读/写操作,是所有块设备与系统其他部分的接口程序 * * (C) 1991 Linus Torvalds *//* * This handles all read/write requests to block device

2009-06-03 14:08:00 1258

原创 linux-ramdisk.c

/* *  linux/kernel/blk_drv/ramdisk.c *                                        //--内存虚拟盘驱动程序 *  Written by Theodore Tso, 12/2/91 */#include #include #include #include #include #inc

2009-06-03 14:08:00 784

原创 linux-hd.c

/*/* *  linux/kernel/hd.c * *  (C) 1991  Linus Torvalds *//* * This is the low-level hd interrupt support. It traverses the * request-list, using interrupts to jump between functions. As

2009-06-03 14:07:00 492966

原创 linux-printk.c

/* *  linux/kernel/printk.c *                                        //--内核中使用的打印函数 *  (C) 1991  Linus Torvalds *//* * When in kernel-mode, we cannot use printf, as fs is liable to * poi

2009-06-03 14:03:00 769

原创 linux-panic.c

/* *  linux/kernel/panic.c *                                            //--用于显示内核错误信息并使系统进入死循环 *  (C) 1991  Linus Torvalds *//* * This function is used through-out the kernel (includeinh

2009-06-03 14:03:00 935

原创 linux-blk.h

#ifndef _BLK_H#define _BLK_H#define NR_BLK_DEV    7                        //--块设备类型数量/* * NR_REQUEST is the number of entries in the request-queue. * NOTE that writes may use only the low 2

2009-06-03 14:03:00 1248

原创 linux-sys.c

/* *  linux/kernel/sys.c *                                            //--系统调用功能的实现函数 *  (C) 1991  Linus Torvalds */#include #include #include #include #include #include #include

2009-06-03 14:02:00 1665

原创 linux-vsprintf.c

/* *  linux/kernel/vsprintf.c *                                        //--对参数产生格式化的输出 *  (C) 1991  Linus Torvalds *//* vsprintf.c -- Lars Wirzenius & Linus Torvalds. *//* * Wirzenius wr

2009-06-03 14:02:00 2602

原创 linux-fork.c

/* *  linux/kernel/fork.c *                                //--fork()用于创建子进程 *  (C) 1991  Linus Torvalds *//* *  fork.c contains the help-routines for the fork system call * (see als

2009-06-03 14:01:00 1770

原创 linux-exit.c

/* *  linux/kernel/exit.c *         //--任务终止和退出的有关处理事宜,包括释放,会话,终止和程序退出处理函数以及杀死进程 *  (C) 1991  Linus Torvalds */#define DEBUG_PROC_TREE#include #include #include #include #include

2009-06-03 14:00:00 1984

原创 linux-schec.c

/* *  linux/kernel/sched.c *                                            //--内核中有关任务(进程)调度管理的程序 *  (C) 1991  Linus Torvalds *//* * sched.c is the main kernel file. It contains scheduling

2009-06-03 13:59:00 768

原创 linux-signal.c

/* *  linux/kernel/signal.c *                                                //--涉及内核中所有有关信号处理的函数 *  (C) 1991  Linus Torvalds */#include #include #include #include #include   int

2009-06-03 13:59:00 1258

原创 linux-mktime.c

/* *  linux/kernel/mktime.c *                                            //--内核专用的计算1970年以来经过的秒数时间 *  (C) 1991  Linus Torvalds */#include /* * This isnt the library routine, it is only

2009-06-03 13:58:00 2898

原创 linux-traps.c

/* *  linux/kernel/traps.c *-----------------asm.s文件调用的相应C函数代码 *  (C) 1991  Linus Torvalds *//* * Traps.c handles hardware traps and faults after we have saved some * state in asm.s.

2009-06-03 13:57:00 1186

原创 linux-sys_call.s

/* *  linux/kernel/system_call.s *                                !--int 0x80中断调用,内核提供的各种功能服务 *  (C) 1991  Linus Torvalds */ /* *  system_call.s  contains the system-call low-level han

2009-06-03 13:57:00 765

原创 linux-asm.s

/* *  linux/kernel/asm.s *                                对Intel中int0-int16的处理,即大部分的硬件故障处理过程 *  (C) 1991  Linus Torvalds *//* * asm.s contains the low-level code for most hardware faults.

2009-06-03 13:56:00 964

原创 linux-main.c

/* *  linux/init/main.c * *  (C) 1991  Linus Torvalds */ //执行流程图片 #define __LIBRARY__ #include #include /* * we need this inline - forking from kernel space will result * i

2009-06-03 13:54:00 1967

原创 linux-head.s

/* *  linux/boot/head.s * *  (C) 1991  Linus Torvalds */ ! ! ! !--加载各段寄存器 !--设置IDT和GDT !--检测A20地址线是否开启 !--检测是否含有数学协处理器 !--管理内存页目录和页表 ! ! !/* *  head.s contains the 32

2009-06-03 13:53:00 1128

原创 Linux-setup.S

!!    setup.s        (C) 1991 Linus Torvalds!!!--利用BIOS中断读取机器系统数据,保存至0x90000!--setup.S将system模块从0x10000移动到0x00000!--加载IDT和GDT!--开启A20地址线!--重新设置中断控制!--设置CPU控制寄存器CR0,进入32位保护模式运行!!

2009-06-03 13:52:00 1051

原创 Linux-bootsect.s

!          程序功能 !          程序运行前动作!1.---------------BIOS检测硬件!2.---------------在0x0000处设置BIOS中断信息!3.---------------加载bootsect.S至0x7c00!4.---------------将自己移至0x90000处!5.---------------使用BIO

2009-06-03 13:49:00 989

转载 GCC编译优化指南

作者:金步国版权声明本文作者是一位自由软件爱好者,所以本文虽然不是软件,但是本着 GPL 的精神发布。任何人都可以自由使用、转载、复制和再分发,但必须保留作者署名,亦不得对声明中的任何条款作任何形式的修改,也不得附加任何其它条件。您可以自由链接、下载、传播此文档,但前提是必须保证全文完整转载,包括完整的版权信息和作译者声明。其他作品本文作者十分愿意与他人共享劳动成果,如果你

2009-04-23 10:32:00 588

原创 四种情况,编译器必须为未声明构造函数之class合成一个默认构造函数

四种情况,C++编译器必须为未声明构造函数之class合成一个默认构造函数第一种情况,class 有member object(该member object有default constructor), class需要default constructor调用member object default constructor第二种情况,如果一个没有任何constructor的class 派生自一个"

2009-04-09 20:20:00 1718 1

转载 kruskal

  1 // 这个算法用kruskal实现了  2 #include iostream>  3 #include algorithm>  4   5 using namespace std;  6   7 const int maxn=100;  8   9 int m[maxn]; 10 // 边的结构体 11 struct node{ 12     int u,v; 13     double

2009-03-31 19:20:00 650

转载 在单机上安装、配置MPI 并行环境

以下内容为转载,未验证! Linux 的安装可以安装任何Linux 发布版, 推荐RedHat-9一些必须安装的包(关于如何用RedHat 的rpm 命令安装软件包可参看Maximum RPM)gcc 包GNU C, 用于C 程序的编译gcc-g77 包GNU Fortran 77, 用于Fortran 程序的编译rsh 包和rsh-server 包用于启动MPI 进程配置rsh-serv

2009-03-16 13:06:00 1300

转载 MPI简介

http://linux.chinaunix.net/bbs/thread-1063704-1-1.html MPI简介MPI(Message Passing Interface)是消息传递并行程序设计的标准之一,MPI的实现包括MPICH、LAM、IBM MPL等多个版本,最常用和稳定的是MPICH,曙光天潮系列的MPI以MPICH为基础进行了定制和优化。  MPICH含三层结构,最上层

2009-03-13 15:48:00 1807

转载 华为面试题

http://hi.baidu.com/blue%5Fhmq 1.写出判断ABCD四个表达式的是否正确, 若正确, 写出经过表达式中 a的值(3分)int a = 4;(A)a += (a++); (B) a += (++a) ;(C) (a++) += a;(D) (++a) += (a++);a = ?答:C和D错误,左侧不是一个有效变量,不能赋值,答案依次为9,10, 2

2009-03-12 17:02:00 941 2

转载 Unix shell 错误集

带有特殊含义的退出码表格 D-1. "保留的"退出码退出码的值含义例子注释1通用错误let "var1 = 1/0"各种各样的错误都可能使用这个退出码, 比如"除0错误"2shell内建命令使用错误(Bash文档上有说明) 很少看到, 通常情况下退出码都为1126命令调用不能执行 程

2009-03-08 14:51:00 625

转载 五种内存分配、堆与栈区别

一、预备知识—程序的内存分配 一个由C/C++编译的程序占用的内存分为以下几个部分 1、栈区(stack)— 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其 操作方式类似于数据结构中的栈。 2、堆区(heap) — 一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回 收 。注意它与数据结构中的堆是两回事,分配方式倒是类似于链表,呵呵。 3、全局区(静态区)(static)

2009-02-21 10:36:00 492

转载 gets()与scanf()的区别

可以用如下两种方式输入字符串,示例程序段如下: char string[15]; gets(string);       /*遇到回车认为输入结束*/   scanf("%s",string);  /*遇到空格认为输入结束*/ 。。。 所以在输入的字符串中包含空格时,应该使用gets输入。

2009-02-21 09:08:00 532

MPI分布内存并行程序开发

MPI分布内存并行程序开发----联想内部资料

2009-03-16

高性能计算之并行编程技术---MPI并行程序设计

高性能计算之并行编程技术---MPI并行程序设计

2009-03-16

mfc类库详解chm

mfc类库详解chm

2008-03-09

api函数集.txt

api函数集,内容丰富

2008-03-07

空空如也

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

TA关注的人

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