Timeline for Is it possible for two processes to use the same shared-memory without resorting to a file to obtain it, be it a memory-mapped file or /dev/shm file?
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 4, 2023 at 11:13 | comment | added | Marcus Müller | the shm_open (which probably is more what you want than shmget) manual page (man shm_open) has an example. | |
| Jun 4, 2023 at 11:05 | comment | added | ThreadFrank | Sorry, man. You are right and I do take everything ChatGPT says with a grain of salt. That said, do you know a good and clear example / article for using shmget to share data between two processes? It could be in C/C++ and I can wrap with JNI to port it to Java. | |
| Jun 4, 2023 at 8:02 | comment | added | Marcus Müller | What it says takes valuable volunteer time, while generating the nonsense costs no human time. | |
| Jun 4, 2023 at 8:01 | comment | added | Marcus Müller | Chatgpt generally knows nothing, so that literally tells us nothing at all. I'll not even read this link, sorry. ChatGPT just makes things up, and it has zero understanding of the things it says. It just gives answers that sound good. That is really literally the only thing it's been trained to do -giving good sounding answers, not correct ones, not understanding the subject. Asking ChatGPT about anything is really a waste of time if you're looking for understanding. That's why it's even against stack overflow rules to base posts on ChatGPT - it's a free nonsense machine, and debunking | |
| Jun 4, 2023 at 3:03 | comment | added | ThreadFrank | Thanks! I would love to do that in Java, but it looks like rocket science. Even ChatGPT knows nothing about it => chat.openai.com/share/59754a56-6842-4531-979a-6044ca680c23 | |
| Jun 4, 2023 at 2:39 | vote | accept | ThreadFrank | ||
| Jun 2, 2023 at 15:58 | history | answered | Marcus Müller | CC BY-SA 4.0 |