Re: Sharing read/WRITE data between threads? [EXT]

2021-08-25 Thread David Booth
either use something like redis or memcache (possibly backed with a database). -Original Message- From: David Booth Sent: 25 August 2021 00:51 To: modperl Subject: Sharing read/WRITE data between threads? [EXT] I am using Apache/2.4.41 (Ubuntu), with mod_perl. Apache uses multiple thre

RE: Sharing read/WRITE data between threads? [EXT]

2021-08-25 Thread James Smith
a database). -Original Message- From: David Booth Sent: 25 August 2021 00:51 To: modperl Subject: Sharing read/WRITE data between threads? [EXT] I am using Apache/2.4.41 (Ubuntu), with mod_perl. Apache uses multiple threads, and I want to share read/WRITE data between threads. (I.e., I want t

Re: Sharing read/WRITE data between threads?

2021-08-25 Thread Jacques Deguest
Or you can also consider using IPC::Shareable if your system supports IPC. Jacques Deguest On 2021/08/25 17:11, Brad Van Sickle wrote: > I've shared read-only data across threads many times a cheap and easy > caching mechanims, but as I'm sure you've

Re: Sharing read/WRITE data between threads?

2021-08-25 Thread Brad Van Sickle
I've shared read-only data across threads many times a cheap and easy caching mechanims, but as I'm sure you've found in your research, the "copy-on-write" methodology employed by mod_perl prevents you from doing that for mutable data and I'm not aware of a way around that without fundamental

Sharing read/WRITE data between threads?

2021-08-24 Thread David Booth
I am using Apache/2.4.41 (Ubuntu), with mod_perl. Apache uses multiple threads, and I want to share read/WRITE data between threads. (I.e., I want to be able to modify some shared data in one thread, such that other threads can see those changes.) In "Practical mod_perl" Stas Bekman