Hyper Threading

I seem to be having an issue with a Multhreaded APP.
The software runs 100% on a non hyperthreaded machine however when I switch the CPU to hyperthreaded mode it just comes up with an error etc.

When i try and debug on the hypethreaded core it suns 100%. No Errors.
Initially I ran with Mutexes to make sure that there is sync between the threads and this would run either come up with an error or run.
I have now completely redisgned the Mutithreading to make use of events and not mutexes and still the same issue.
Any thoughts on this issue would be appreciated.
Why would hyperthreading cause this issue

PS. This was tested on more than one machine and in both cases it failed when running with hyper threading enabled and works 100% when not.


Answer this question

Hyper Threading

  • TedSA

    OK,
    I have resolved this error.
    It seems that I had a dequeue that was being read and written to at the same time.
    I assume that this issue did not happen and a non hyper threaded configurations because of the time slicing nature of this multi threading but it does happen on the hyper threading system because it really does behave as if it is two processors that are executing the threads simultaneously.



  • Hyper Threading