Linux 实验:进程管理

1、fork()函数创建子进程

在Linux系统下创建一个新进程,在子进程中实现输出“hello Linux”字符串及其PID编号,父进程中实现输出“welcome to the world of Linux”字符串及其PID编号。

2、exec()函数的使用

使用exec()函数代替一个hello.c文件,在hello.c文件中实现从1到100的累加计算。

 1、

2、

猜你喜欢

转载自blog.csdn.net/qq_42623428/article/details/102501442