摘要: 进程组 一个或多个进程的集合 进程组ID: 正整数 两个函数 getpgid(0)=getpgrp()eg:显示子进程与父进程的进程组id 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <unistd.h> 4 5 int main() { 6 pid_t pid; 7 8 if ((pid=fork())<0) { 9 printf("fork error!");10 }else if (pid==0) {11 printf("The child proces 阅读全文
posted @ 2012-04-03 23:44 Alex_Monkey 阅读(27794) 评论(6) 推荐(12) 编辑
摘要: 简单数据类型包括: 整型(Interger): byte, short, int, long 浮点类型(Floating): float, double 字符类型(Textual): char 布尔类型(Logical): boolean复合数据类型包括: class interface 数组 String常量: 用final. eg: final int NUM = 100;变量: 局部变量、类变量、方法参数、例外处理参数简单数据间的优先数据关系: 低-->高: byte,short,char->int->long->float->double自... 阅读全文
posted @ 2012-04-03 23:35 Alex_Monkey 阅读(2272) 评论(0) 推荐(0) 编辑