Subj : Re: One thread on several processors in multiprocessor system? To : comp.programming.threads From : David Schwartz Date : Tue Feb 01 2005 02:01 pm "Julius" wrote in message news:978191dd.0502010741.375b1091@posting.google.com... > I never thought befor deep about threads, but. I know that one thread > can run on separate processor. but, can one thread runs on several > processors? Say, simultaneously calculating sqrt(2), in one processor, > and 2+2 on another? > > For example in the code: > > ... > > double x = sqrt(2); > int i = 2 + 2; > .... A sufficiently smart compiler might be able to perform these two operations concurrently by realizing that there are no dependencies between them. However, most people would describe this as the compiler employing two threads. DS .