Question about Threads. I'm programming on a quad processor solaris box. My question is how do my cpu's get scheduled? Are they scheduled by process or by thread.

Meaning when I'm running a single multithreaded process does my program take advantage of the multi processors? Or do I need to run multi-processes to saturate these cpu's?