shared-memory
how to use shared memory to communicate between two processes
I am trying to communicate between two processes. I am trying to save data(like name, phone number, address) to shared memory in one process and trying to print that data through other process.[详细]
2023-04-01 17:16 分类:问答Passing data structure to another process using shared memory and saving to file
I am sending data(name, ph number & address) to another process using shared memory. I have to print data in the second process and store them to a file. I have tried this code but I am not receiv[详细]
2023-03-31 22:48 分类:问答Initializing shared memory safely
I have several processes communicating with each through POSIX shared memory on OS X. My issue is these processes could spawn in any order, and try to initialize the shared memory segment at the same[详细]
2023-03-30 03:00 分类:问答accessing shared variable from inside a Runnable class
I need to define a shared variable in my Main class\'s main() method. I need two threa开发者_Go百科ds to be able to access that shared variable. Im creating the threads by implementing the Runnable in[详细]
2023-03-30 00:21 分类:问答MEM_SHARED, mmap, and hard links
Just wondering if the key to shared memory is the file name or the inode. I have a file called .last, which is just a hard link to a file named YYYYMMDDHHMMSS.[详细]
2023-03-27 17:27 分类:问答How to pin a shared memory segment into physical memory
I use boost::interprocess::managed_shared_mem开发者_开发技巧ory to load a data structure in shared memory. I need to pin the shared memory segment into physical memory (for example similar to system c[详细]
2023-03-27 10:47 分类:问答To implement a Shared memory manager in C++
I have implemented a simple shared memeory code which is scattered in the two processes(1 acts writer and other acts as reader). But I want manage this SHM code(just like a memory manager),which works[详细]
2023-03-27 04:37 分类:问答Do forked child processes use the same semaphore?
Let\'s say I create a semaphore.If I fork a bunch of child processes, will they all still use that same semaphore?[详细]
2023-03-23 13:41 分类:问答'Shared Object Memory' vs 'Heap Memory' - Java
What is difference between \'Shared Object Memory\' and \'Heap Memory\' in Java. Is it like \'Shared Object Memory\' is superset of \'Heap Memory\'?[详细]
2023-03-23 06:11 分类:问答small named shared-counter
I am looking at Windows synchronization objects http://msdn.microsoft.com/en-us/library/ms682411(v=VS.85).aspx, those that can be opened as named objects.[详细]
2023-03-22 03:31 分类:问答