|
As I said, k remains constant during the execution of the loop. The compiler should see that as it compiles the loop which has no external references and no references to k. I'll just spilt it up manually into four loops and run each on a thread. If I can do it then the complier should be able to.
Git
|