English 中文(简体)
共享记忆:地点和锁定战略
原标题:Shared memory: location and locking strategies

我有一位创造共同记忆区域的作者,我想确保读者在撰写人准备就绪之前不开该地区。 我这样做的粗略方式是作者们,会以只读的方式开课。 该地区一旦得到正确建造,档案就存档。 这是幸运的,我不能假装()记录员更改许可。 任何建议(该区域没有做些什么?)

为什么会 y? 部分原因在于没有平衡法(假定是)告诉我,共有记忆区在哪里生活(例如/dev/shm)。 有一些平衡法,可以看一看,我更喜欢不复制,但如果没有人能够给我更好的解决办法,可能别无选择。

问题回答

你们当然可以使用微粒,这允许你在你选择的目录中使用一个档案(也许是一种选择,可以把它放在斜线上)。

但是,为了解决lock锁问题,也许你们应该利用共享区域的双向,或者(在推动下)仅仅锁在案卷上。

但是,如果你试图把它当作一个问题来做,那么你也许应该只使用一种更令人怀疑的IPC物体。





相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

热门标签