How does context switching work in multicore machines? Is each new processes assigned to a idle processor? If so, does context switching only occur if none of the processors are idle? I image that this depends on the operating system.
I ask only because I am curious and no other reason.
Thanks in advance.