RobertVanA
07-29-2009, 10:54 AM
Hi,
I do have some problems with the use of threads in a duo core cpu environment.
The making of the threads is no problem. The program runs fine if every thread
get its own procedure function. The wall-clock time reduces to about 50%. So far so good.
Things become worse if both threads use the same procedure funtion. Every thread gets it own parameter to let the function identify the work to be done in that particular thread.
The program, however, fails with an exception violation.
Neither the use of critical sections nor other measures does help.
The program is in Windows XP SP3; the compiler is LF7.1
Has anyone a working example of such a program or has someone any idea what could
went wrong?
Thanks
Robert
I do have some problems with the use of threads in a duo core cpu environment.
The making of the threads is no problem. The program runs fine if every thread
get its own procedure function. The wall-clock time reduces to about 50%. So far so good.
Things become worse if both threads use the same procedure funtion. Every thread gets it own parameter to let the function identify the work to be done in that particular thread.
The program, however, fails with an exception violation.
Neither the use of critical sections nor other measures does help.
The program is in Windows XP SP3; the compiler is LF7.1
Has anyone a working example of such a program or has someone any idea what could
went wrong?
Thanks
Robert