When you call GC.Collect on a machine, does it do collection for the entire machine/all processes or does it only do collection for the process calling it?
There are only two answers here to choose from:
*Please do NOT reply "you should never force garbage collection". There are lot's of posts on that.
For sake of discussion, let's say you inherited the worst app ever made which creates lots of garbage, runs repeat processes, and eventually crashes once a day due to running out of memory. You have no source code to fix it, but it must keep running, because your business depends on it. Could you create a utility app to run every 30 minutes to force garbage collection on the machine to keep that process from running out of memory?
Only your process. The .Net runtime is instantiated in your own process, so you only control your own .Net internals.