Linux中的进程间通信POSIX共享内存 [英] interprocess communication POSIX shared memory in linux

查看:122
本文介绍了Linux中的进程间通信POSIX共享内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

两个进程一个写入共享内存,另一个处理从linux中的共享内存读取
我需要一个代码用于写入共享内存的进程(写程序),以及一个代码与写入程序同时从共享内存中读取的进程(读取器)
在段上写入不同类型的数据(字符串,整数,...)并读取它的问题
感谢所有

two processes one write to the shared memory and the other read from the shared memory in linux
i need a code one for the process (writer) which write to the shared memory and one for the process(reader) which read from the shared memory simultaneously with the writer process
the problem in writing different types of data(string,integer,...) on the segment and reading it
thanks for all

推荐答案

作为开发人员,您不需要代码,只需要要求.
因此,请尝试自己开发程序.
此外,在这里要求完整的代码是没有意义的,您应该问一些具体问题(请参阅FAQ).
As developer, you shouldn''t need code, you should just need requirements.
Hence, please, try yourself to develop the programs.
Moreover, asking for full code here is pointless, you should instead ask specific questions (see the FAQ please).


这篇关于Linux中的进程间通信POSIX共享内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆