Multi-threading or multi-processing, how to know which to use and when?

Stackoverflow disagrees;)