shared-memory
Linux mapping virtual memory range to existing virtual memory range?
In Linux, is there a way (in user space) to map a virtual address range to the physical pages that back an existing virtual address range?The mmap() function only allows one to map files 开发者_如何学[详细]
2023-01-30 08:51 分类:问答Can I pass an object to another process just passing its' pointer to a shared memory?
I have a very complicated class(it has unordered_map and so on on inside it) and I want to share an object of it withit two my processes. Can I simply pass just a pointer to it from one process to ano[详细]
2023-01-28 03:01 分类:问答Fastest IPC in PHP
I wonder, which is the fastest way to send data from one process to other in PHP? The data is only a short string. Curretly开发者_如何学JAVA I have a solution with AF_UNIX sockets developed, but bench[详细]
2023-01-26 20:19 分类:问答Managing Shared Memory in C on OSX
I am working on a university assignment, based largely around IPC and shared memory.The problem is, as a complete noob to C, I\'ve been happily testing my app (which uses shmget andshmat obviously) fo[详细]
2023-01-26 18:17 分类:问答Cannot access PHP/C++ shared memory over the web
I am sharing some m开发者_开发百科emory between C++ and PHP At the PHP end I have: $inputshm_id = shmop_open($shid, \"w\", 0777, 1024);[详细]
2023-01-24 23:50 分类:问答What to lock and what to not lock in a multithreaded environment (semaphores and shared memory)
I was implementing some simple Producer/Consumer program that had some semaphores and shared memory. To keep things simple, let\'s assume that there\'s just a block of shared memory and a semaphore in[详细]
2023-01-24 20:13 分类:问答What is the point of having a key_t if what will be the key to access shared memory is the return value of shmget()?
When using shared memory, why should we care about creating a key key_t ftok(const char *path, int id);[详细]
2023-01-24 18:48 分类:问答Sharing memory among a parent and child process in Solaris (in C)
I am just looking for a simple tutorial/example to put me in the right direction, I cannot seem to find a good simpl开发者_运维问答e one.[详细]
2023-01-23 23:47 分类:问答sizeof returns different values for a struct when compiling different programs
I have 2 programs that share a header file. This header file defines a structure with a few members. There is then a #define: #define STRUCTURE_SIZE sizeof(OUR_STRUCTURE).[详细]
2023-01-23 11:15 分类:问答Initializing a pthread mutex in shared memory
I can initialize a mutex in static memory with an initializer: pthread_mutex_t mymutex = PTHREAD_MUTEX_INITIALIZER;[详细]
2023-01-23 03:30 分类:问答