Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I create a virtual disk in memory programatically?

For performance purposes I want to write to memory, where an external application can read. I can't link both applications together, so I think the only way is by writing a file. But writing it to a physical disk isn't fast enough. I want to mount a virtual partition so any application can access it. How to do it?

like image 219
Jader Dias Avatar asked Feb 19 '26 11:02

Jader Dias


1 Answers

You don't need to go as far as creating a virtual disk to share memory between processes on Windows - you can create a shared memory block, and multiple processes can then access that memory.

See this MSDN article: Creating Named Shared Memory

like image 65
RichieHindle Avatar answered Feb 22 '26 00:02

RichieHindle