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 30 October 2002, 02:26 PM
  #1  
David_Wallis
Scooby Regular
Thread Starter
 
David_Wallis's Avatar
 
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
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
Old 30 October 2002, 02:39 PM
  #2  
Fosters
Scooby Regular
 
Fosters's Avatar
 
Join Date: Jul 2000
Location: Islington
Posts: 2,145
Likes: 0
Received 0 Likes on 0 Posts
Post

calculate pi - that's an iterative process you can do for x seconds.
Old 30 October 2002, 02:40 PM
  #3  
David_Wallis
Scooby Regular
Thread Starter
 
David_Wallis's Avatar
 
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
Post

come on then you owe us a favour!

And dont say you havent got .net

David
Old 30 October 2002, 02:48 PM
  #4  
MarkO
Scooby Regular
 
MarkO's Avatar
 
Join Date: Oct 1998
Location: London
Posts: 4,891
Likes: 0
Received 0 Likes on 0 Posts
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.
Old 30 October 2002, 02:52 PM
  #5  
David_Wallis
Scooby Regular
Thread Starter
 
David_Wallis's Avatar
 
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
Post

stfw reveals nothing?

David
Old 30 October 2002, 03:24 PM
  #6  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

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

Deano
Old 30 October 2002, 03:26 PM
  #7  
super_si
Scooby Regular
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
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]
Old 30 October 2002, 04:20 PM
  #8  
David_Wallis
Scooby Regular
Thread Starter
 
David_Wallis's Avatar
 
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
Post

thanks si

have you been drinking again?
Old 30 October 2002, 04:49 PM
  #9  
MrDeference
Scooby Regular
 
MrDeference's Avatar
 
Join Date: Mar 2002
Posts: 337
Likes: 0
Received 0 Likes on 0 Posts
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
Old 30 October 2002, 04:51 PM
  #10  
IWatkins
Scooby Regular
 
IWatkins's Avatar
 
Join Date: Mar 2000
Location: Gloucestershire, home of the lawnmower.
Posts: 4,531
Likes: 0
Received 0 Likes on 0 Posts
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

Old 30 October 2002, 09:33 PM
  #11  
super_si
Scooby Regular
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

A little from column, and a little from column B


Old 31 October 2002, 10:16 AM
  #12  
David_Wallis
Scooby Regular
Thread Starter
 
David_Wallis's Avatar
 
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
Post

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

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

David
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Blow Dog
Non Scooby Related
4
16 September 2001 12:22 PM
Peter Johnson
Wanted
1
01 June 2001 07:56 PM
John 555
Wanted
1
15 April 2001 11:19 AM
SimonH
ScoobyNet General
18
19 March 2001 11:35 AM



Quick Reply: urgent help with .net



All times are GMT +1. The time now is 09:55 AM.