c-inter-process-communication-example

时间:2021-04-18 20:58:41
【文件属性】:
文件名称:c-inter-process-communication-example
文件大小:6KB
文件格式:ZIP
更新时间:2021-04-18 20:58:41
C 在C中具有子进程的IPC示例项目 还有其他/新的解决方案可以实现进程间通信。 也许这些解决方案更适合您的问题。 因此,在采用某种技术之前,请查看有关,和的linux手册部分。 此示例包含一个main.c文件,其中显示框通过fork函数以及通过shmget , shmat , shmdt和shmctl函数进行的共享内存访问将执行克隆到子进程中。 链接到linux函数文档: 生成并运行 此存储库已准备好进行编译,并具有完整的示例。 # install packages sudo apt install make gcc # use make to build a target make clean debug # run the program ./app.debug 如何 如何将主/父进程派生/克隆到同时执行的子进程中 // variable to hold the return v
【文件预览】:
c-inter-process-communication-example-main
----src()
--------main.c(1KB)
----.gitignore(81B)
----Makefile(1KB)
----README.md(5KB)
----.vscode()
--------launch.json(915B)
--------settings.json(389B)
--------tasks.json(986B)

网友评论