On 10 October 2012 13:47, Richard Hipp wrote: > We would also love to have guidance on alternative techniques for > obtaining memory shared across multiple processes that does not > involve mmap() of temporary files.
In case it's any use, what we use on Linux is: ftok(P) -- presumably you could use the sqlite file as the first argument shmget(P) -- using the id generated by ftok(), and using IPC_CREAT if needed shmat(P) and shmdt(P) Our use case is different to sqlite and it's quite easy for us to know when to create, initialise and finally shm_unlink() the memory because we know in what order our processes start & stop. But presumably you already have that issue in the mmap() version. Paul. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users