LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 923|回复: 7

紧急求助

[复制链接]
自由狼-台风 该用户已被删除
发表于 2003-3-25 22:24:50 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2003-3-26 03:20:00 | 显示全部楼层
你打算进行进程之间的通讯呢,还是想要修改另一个程序文件(ELF)呢?
自由狼-台风 该用户已被删除
 楼主| 发表于 2003-3-26 19:53:22 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2003-3-27 14:40:59 | 显示全部楼层
建议你认真了解unix的进程间通讯机制。你可以建立一个客户-服务器模型,服务器负责所有的操作,由用户界面发出请求,再把请求的内容发送给服务器处理。这样,程序的结构要清晰一些。
发表于 2003-3-30 13:13:16 | 显示全部楼层
这样的目的,用thread方便多了,使用进程的话,去看看 IPC ,很久就有了,文档因该很多的
自由狼-台风 该用户已被删除
 楼主| 发表于 2003-4-1 21:16:21 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2003-4-3 02:44:44 | 显示全部楼层
不明白,你跟我一样能上网,能看书,怎么就没有条件呢???
比如:
NAME
       shmget - allocates a shared memory segment

SYNOPSIS
       #include <sys/ipc.h>

       #include <sys/shm.h>

       int shmget(key_t key, int size, int shmflg);

DESCRIPTION
       shmget() returns the identifier of the shared memory segment associated
       to the value of the argument key.  A new shared  memory  segment,  with
       size  equal to the round up of size to a multiple of PAGE_SIZE, is cre-
       ated if key has value IPC_PRIVATE or key isn't IPC_PRIVATE,  no  shared
       memory  segment is associated to key, and IPC_CREAT is asserted in shm-
       flg (i.e.  shmflg&IPC_CREAT isn't zero).

       The value shmflg is composed of:


还可以搜索:IPC SysV shm
自由狼-台风 该用户已被删除
 楼主| 发表于 2003-4-3 21:09:18 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表