473,387 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Hyperthreading and TimerCallback

When hyperthreading is not enabled we are able to run this code just fine

TimerCallback myCallBack = new TimerCallback( CheckForWork );
Timer myTimer = new System.Threading.Timer( myCallBack, null, 0, 3000);

The method is called every 3 seconds. When hyperthreading is enabled the
method is ran once and then stops. I am wondering of anyone knows why this
would be happening? We are running Windows XP Pro and have a Pentium 4, 3.0
GHz processor. Previously we had a while loop and a thread.sleep inside the
loop and it worked, but it seems using the thread pool would be more
efficient, but I am not sure if we should go back to that.

Thanks,
Travis

Nov 17 '05 #1
0 1156

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BlackHawke | last post by:
Hello! I have a java application (a game) which is supposed to run as a server. It is on a dedicated machine with MP capabilities, but currently running 1 Xeon processor with hyperthreading. ...
4
by: Firdousi Farozan Z | last post by:
Hi All, I have a Java multithreaded application, that makes several JNI calls (native code written in C++). I use database locks all through the C++ code for synchronization. With...
1
by: Thirsty Traveler | last post by:
I am getting a compile error ("No overload for 'Timer_Tick' matches delegate 'System.Threading.TimerCallback'") on the following code and can't figure out why. Does anyone have any ideas? public...
0
by: R K | last post by:
I am delevoping a Scheduler module whose functionality is to load the Scheduled Item Details every day (For this I have created a System.Threading.TimerCallBack with Timespan 1 day) in a stack. Once...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.