Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

urgent help with .net

Thread Tools
 
Search this Thread
 
Old Oct 30, 2002 | 02:26 PM
  #1  
David_Wallis's Avatar
David_Wallis
Thread Starter
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
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
Reply
Old Oct 30, 2002 | 02:39 PM
  #2  
Fosters's Avatar
Fosters
Scooby Regular
 
Joined: Jul 2000
Posts: 2,145
Likes: 0
From: Islington
Post

calculate pi - that's an iterative process you can do for x seconds.
Reply
Old Oct 30, 2002 | 02:40 PM
  #3  
David_Wallis's Avatar
David_Wallis
Thread Starter
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Post

come on then you owe us a favour!

And dont say you havent got .net

David
Reply
Old Oct 30, 2002 | 02:48 PM
  #4  
MarkO's Avatar
MarkO
Scooby Regular
 
Joined: Oct 1998
Posts: 4,891
Likes: 0
From: London
Question

IIRC there was a tool called Stressmon.exe which would allow you to do this kind of thing. I think it was part of MSVC 5 or 6.
Reply
Old Oct 30, 2002 | 02:52 PM
  #5  
David_Wallis's Avatar
David_Wallis
Thread Starter
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Post

stfw reveals nothing?

David
Reply
Old Oct 30, 2002 | 03:24 PM
  #6  
dsmith's Avatar
dsmith
Scooby Regular
 
Joined: Mar 1999
Posts: 4,518
Likes: 0
Post

does it have to be 90% - Seti would get you 100% easily ....

Deano
Reply
Old Oct 30, 2002 | 03:26 PM
  #7  
super_si's Avatar
super_si
Scooby Regular
 
Joined: Feb 2002
Posts: 7,951
Likes: 0
From: Lurkin Somewhere
Post

hot cpu gets a canny bit!

just ran Prime95, that use's 90-100%!





[Edited by super_si - 10/30/2002 3:34:39 PM]
Reply
Old Oct 30, 2002 | 04:20 PM
  #8  
David_Wallis's Avatar
David_Wallis
Thread Starter
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Post

thanks si

have you been drinking again?
Reply
Old Oct 30, 2002 | 04:49 PM
  #9  
MrDeference's Avatar
MrDeference
Scooby Regular
 
Joined: Mar 2002
Posts: 337
Likes: 0
Post

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
Reply
Old Oct 30, 2002 | 04:51 PM
  #10  
IWatkins's Avatar
IWatkins
Scooby Regular
 
Joined: Mar 2000
Posts: 4,531
Likes: 0
From: Gloucestershire, home of the lawnmower.
Post

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

Reply
Old Oct 30, 2002 | 09:33 PM
  #11  
super_si's Avatar
super_si
Scooby Regular
 
Joined: Feb 2002
Posts: 7,951
Likes: 0
From: Lurkin Somewhere
Post

A little from column, and a little from column B


Reply
Old Oct 31, 2002 | 10:16 AM
  #12  
David_Wallis's Avatar
David_Wallis
Thread Starter
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Post

Kevin, aint one of my apps.. Im not that bad at programming

Told them they cant have the app... much easier..

David
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Blow Dog
Non Scooby Related
4
Sep 16, 2001 12:22 PM
Peter Johnson
Wanted
1
Jun 1, 2001 07:56 PM
John 555
Wanted
1
Apr 15, 2001 11:19 AM
SimonH
ScoobyNet General
18
Mar 19, 2001 11:35 AM




All times are GMT +1. The time now is 03:26 AM.