not so good with menucoding so its suppose to have a run singlethread option as well, just insert your own code and testrun
spinloop controlled with spinloop variable according to intels document on not polluting a cacheline and according to intels documents make use of the new pause opcode that prevents unnesseary loops be executed and heat up core , but pauses until updated spinloop variable has been read in cache
ok I have kinda written it so one thread acts as master thread
now with later experience, maybe a prefetch in first started thread should be issued at first, while main app is still busy initalizing second thread?
[attachment deleted by admin]
Magnus,
I downloaded the demo and ran it after building it but all I get is a window with no menu on it. Could you tell us what the demo is supposed to do ?
Quote from: hutch-- on November 04, 2007, 01:07:53 PM
Magnus,
I downloaded the demo and ran it after building it but all I get is a window with no menu on it. Could you tell us what the demo is supposed to do ?
its supposed to time your code running dualthread, just place what you wanna time inside testmacro in the long run so you get choices on menu for runthread and its an example of make use of spinloop
daydreamer, I get the same as hutch--, namely a window with no menu at all.
Your ZIP-file comprises "multithreadtest1.asm" but nothing else. Is it conceivable that something else is required, a *.RC or *.RES file? (Sorry for being unspecific, I never use these in my own work)
ok I uploaded new version with RES file and RC file
Now I get a window with a menu where I can switch between "Run Thread" and "Stop Thread" -- an "Exit" option is also available. All of these seem to work. The source code suggests that I should get MessageBoxes. These never appear. WinXP 32 SP2, Intel Core2 Duo.