Explain what is a context switch between threads? What is the most effective way- multi-threading or just one? what about multi-core?
Sigiloso
The "wasted" time while saving the previous thread's data and loading the new one's. Generally a context switch causes the CPU to use it's time for something other than running the actual program, so the fewer the better. I missed the point on multi-cores and answered that if there isn't much time spent waiting for I/O than one thread is always better. A better answer is one thread per core.