News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

dualthread testapp skellie, spinloopsynchronized

Started by daydreamer, October 10, 2007, 08:11:12 AM

Previous topic - Next topic

daydreamer

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]

hutch--

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 ?
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

daydreamer

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

Frank

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)

daydreamer

ok I uploaded new version with RES file and RC file

Frank

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.