urgent help with .net
#1
Scooby Regular
Thread Starter
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
Im stuck... I need to think of a way of getting the cpu up to around 90% utilisation for a set amount of time...
An app runs too quick
so need to click on icon 90% launch app, then when exe has been quit or whatever back down to normal...
.NET only please!
or ideas on how... thought about a couple of threads running doing a bit of maths...
David
An app runs too quick
so need to click on icon 90% launch app, then when exe has been quit or whatever back down to normal...
.NET only please!
or ideas on how... thought about a couple of threads running doing a bit of maths...
David
Trending Topics
#9
If the app runs too quickly use System.Threading.Thread.Sleep(x) to send the thread to sleep for x milliseconds - don't hose the processor just to slow your app down.
If however you want to slow another process down (some 3rd party software, for example), go to Task Manager and lower it's priority first.
Then write a small app that does a simple loop with a couple of tiny sleeps in it (only a millisecond or so), but creates hundreds of threads. Basically you are trying to force down the number of timeslices (as a proportion of the total your CPU allocates) available to the "too quick" thread. You system performance may suffer
If however you want to slow another process down (some 3rd party software, for example), go to Task Manager and lower it's priority first.
Then write a small app that does a simple loop with a couple of tiny sleeps in it (only a millisecond or so), but creates hundreds of threads. Basically you are trying to force down the number of timeslices (as a proportion of the total your CPU allocates) available to the "too quick" thread. You system performance may suffer
#10
Scooby Regular
Join Date: Mar 2000
Location: Gloucestershire, home of the lawnmower.
Posts: 4,531
Likes: 0
Received 0 Likes
on
0 Posts
MS Stress Tool is part of the SDK. OK, it isn't .Net but might help.
Let me know if you don't have a copy, I'm sure I coul dig a copy out from my toppling pile of MSDN DVDs
Cheers
Ian
Let me know if you don't have a copy, I'm sure I coul dig a copy out from my toppling pile of MSDN DVDs
Cheers
Ian
#12
Scooby Regular
Thread Starter
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
Kevin, aint one of my apps.. Im not that bad at programming
Told them they cant have the app... much easier..
David
Told them they cant have the app... much easier..
David
Thread
Thread Starter
Forum
Replies
Last Post
Blow Dog
Non Scooby Related
4
16 September 2001 12:22 PM