I was a bit terse. The "cache" was the application part.
Okay. I didn't see that interpretation.
My first reaction is: whatever thread is responsible for the construction/generation of the objects that you want to cache, caches them.
Ie. If you have a DB thread that is issuing queryies and retrieving results on behalf of all the other threads in the application, then it does the caching. If any thread asks for the same data, (presumably via a queue), then it replies with the results from its local cache.
Ditto for user input. You have a single thread dealing with user input and when another thread requests input it is supplied from the input thread local cache if available.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
|