Linux模块机制浅析
Linux允许用户通过插入模块,实现干预内核的目的。一直以来,对linux的模块机制都不够清晰,因此本文对内核模块的加载机制进行简单地分析。 模块的Hello
World! 我们通过创建一个简单的模块进行测试。首先是源文件main.c和Makefile。 f...
分类:
系统相关 时间:
2014-05-17 14:33:32
阅读次数:
528
贵灯提供的简单打印函数,非原创; 注意: do{}while(false); 的使用(内部多个判断,用
do false 中的 break 可以避免使用 if true 引起的嵌套层数过多); 关键段 CRITICAL_SECTION 的使用,封装了 lock 和
unlock 函数; 不定长参数 ...
分类:
其他好文 时间:
2014-05-16 04:26:20
阅读次数:
321
Hello World //HelloWorld.java文件 public class
HelloWorld { public static void main(String[] args) { System.out.println(“Hello
World!”); } } 编译运行 javac ...
分类:
编程语言 时间:
2014-05-16 04:11:27
阅读次数:
306
style="word-break:break-all;word-wrap:break-word;"
分类:
其他好文 时间:
2014-05-16 03:04:36
阅读次数:
277
每个学程序的人都是冲“Helloworld”开始进入神奇编程的世界!简单的代码:#include<stdio.h>intmain(){printf("HelloWorld\n");}#include<stdio.h>将从编译器的安装文件夹下的include文件夹下去搜索stdio.h头文件。stdio.h是标准的输入输出流文件。intmain()是整..
分类:
编程语言 时间:
2014-05-15 19:09:59
阅读次数:
280
题目链接:
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3681
E - Cup 2
Time Limit: 2 Seconds Memory Limit: 65536 KB
The European Cup final is coming. The past two World C...
分类:
其他好文 时间:
2014-05-15 14:56:27
阅读次数:
393
The modernization of world had led to coming of
many businesses online. Businesses have realized the importance of coming up
online. That is the main ...
分类:
其他好文 时间:
2014-05-15 10:14:55
阅读次数:
364
object ScalaDemo1 {
def main(args: Array[String]) {
println("Hello,world!");
}
}...
分类:
其他好文 时间:
2014-05-15 08:09:30
阅读次数:
227
省赛过去几天了,一直不知道该说些什么,比赛比的不好,没有什么理由或者借口,其实只是自己能力不够,自己的知识面太窄,刷题太少,做题不够深入。先说一下热身赛,我们的编译器刚开始有点问题,不管代码输出什么,都会输出hello
world,问技术人员,技术人员弄了半天还是不行,后来我们重新打开cb才行,三道...
分类:
其他好文 时间:
2014-05-15 07:33:07
阅读次数:
223
Call back function easily implement
#include
void HelloWorld(int nIndex)
{
printf("%d person say Hello World\n",nIndex);
}
void MyName(int len)
{
printf...
分类:
其他好文 时间:
2014-05-15 04:21:05
阅读次数:
270