shared-memory
POSIX shared memory: find out if anyone is attached to a segment
In System V shared memory (shmget()), it is possible to find out how many attached users there are for a se开发者_Python百科gment by using shmctl(... IPC_STAT ...) and reading the field shm_nattch of[详细]
2023-03-20 05:57 分类:问答Boost shared memory. How many processes are currently using the shared memory?
I am sharing some memory between processes, using the boost library; boost::interprocess::managed_shared_memory managed_shm(boost::interprocess::open_or_create, \"shm\", 1024);[详细]
2023-03-18 04:40 分类:问答Interlocked functions c++
I am developing a system that uses shared memory and interlocked functions. Let\'s assume i have volatile unsigned int n, a, b. I want to do the following pseudocode atomicly:[详细]
2023-03-17 04:34 分类:问答Why does IPC::SysV->shmget respond with EINVAL?
I am currently running perl 5.8.8 on a server and I\'m trying to install 5.14. I configured it to usethreads and use64bitint and otherwise the defaults it suggested.[详细]
2023-03-15 04:18 分类:问答Using shared memory with fork()
I already looked at the only similar post I could find, but it wasn\'t what I was looking for. Basically, I\'m开发者_开发知识库 trying to run the Odd-Even Sort with forking, so the child runs odds an[详细]
2023-03-14 16:31 分类:问答How to remove an object from NSMutableArray only when retain count reaches 0?
I know I\'m not supposed to check or use retainCount, but I\'m trying to wonder if there\'s a way to have an object be removed from an NSMutableArray only after its retain count is 0.[详细]
2023-03-14 10:04 分类:问答Semaphores and shared memory
I have a question regarding multiprocessprogramming in C, I have several reader processes that will be reading from a file into a shared buffer and several writer processes reading from the buffer and[详细]
2023-03-14 08:26 分类:问答Flaws in Shared Memory of Massively Multi-Threaded Designs
I am trying to create my fir开发者_Python百科st application of multi-threading, one that is scalable to multi-core technology. Its inspiration comes from the concept of a event-driven spiking neural n[详细]
2023-03-13 16:47 分类:问答Error in allocating shared memory
I am trying to allocate a shared memory of size 64B. But the compiler throws error when i give a size of more than 27.. How to solve this problem. I am using gcc compiler. I am running the program on[详细]
2023-03-13 13:42 分类:问答problem in peterson's lock in shared memory
I have开发者_如何学C implemented peterson\' algorithm for mutual exclusion in shared memory. I am using shared memory between a c++ and a java process(using jni) for communication. The problem is that[详细]
2023-03-12 20:25 分类:问答