希望对你们有用 #include"uhal.h" #include"keyboard.h" #include"zlg7289.h" #include"44b.h" #pragma import(__use_no_semihosting_swi) // ensure no functions that use semihosting extern int Zlg7289SIOBand; extern int Zlg7289SIOCtrl; int main(void) { U32 key; AR
包含代码和文档 实验一 实验内容 编写程序,演示多进程并发执行和进程软中断、管道通信。 父进程使用系统调用pipe( )建立一个管道,然后使用系统调用fork()创建两个子进程,子进程1和子进程2; 子进程1每隔1秒通过管道向子进程2发送数据: I send you x times. (x初值为1,每次发送后做加一操作) 子进程2从管道读出信息,并显示在屏幕上。 父进程用系统调用signal()捕捉来自键盘的中断信号(即按Ctrl+C键);当捕捉到中断信号后,父进程用系统调用Kill()向两个