multiple-process

Inter-process lock

I am writing a system for automatically recalculating the results of costly methods, and then storing them in a cache. The cache may be distributed, meaning (obviously) multiple processes can access it. On the first invocation of the method to cache the result for, I want to spawn a thread that will periodically recalculate the result o...