473,320 Members | 2,041 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,320 software developers and data experts.

Forcing Resource Hog To Play Nice

I'm writing a Console app that will run on a periodical basis on busy Web
servers. The console app is responsible for backing up files uploaded to the
Web server (copying the files out to a backup server). The Windows Task
Manager will schedule the utility to run at least once per day. This backup
utility zips files and goes through hundreds of directories as it does its
job. While I don't have objective data on performance yet, there is every
reason to believe that this utility could be a resource hog while it's
zipping files etc.

I am considering putting a call to System.Threading.Thread.Sleep() in a few
of the loops (e.g., between each Web site)... perhaps causing it to sleep
for a second or two here and there. My thinking is that this would let the
Web server perform live production tasks with a substantially reduced impact
from this backup utility.

What do you think. Is that a reasonable way to force the utility to play
nice? Or are there some other, perhaps better alternatives, like reducing
it's priority?

Thanks.
Sep 27 '07 #1
1 1115
"Peter Duniho" <Np*********@NnOwSlPiAnMk.comwrote in message
news:13*************@corp.supernews.com...
However, if you are deploying this on Vista, it includes the new ability
to adjust your i/o priority in addition to your CPU priority. If you're
not currently planning to deploy on Vista (or the server equivalent...I
forget what they're calling that), this might be a reason to change your
mind about that. :)
Hear, hear! This is one of the best things about Vista -- it at least
provides the *possibility* for things like virus checkers to *stay out of
the way*!
Sep 27 '07 #2

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

Similar topics

2
by: Joe Thompson | last post by:
Hi, I am trying to use PlaySound in a VC++.net Windows app (VS 2003). I can use it to play a file but now I want to play it from a resource. I have two questions: How do I add a wav file to...
0
by: Niels van de Coevering via .NET 247 | last post by:
I've been trying to find the right solution through google, but haven't come upon the right solution. How do I extract an avi file (stream) from a project resource and play this file (stream) on a...
6
by: David Veeneman | last post by:
How do I configure a .NET 2.0 SoundPlayer object to play a WAV file embedded as a resource? I have tried the example in the MSDN documentation, and I am getting nowhere. Is there a simple...
3
by: Jared | last post by:
I'm using the first code sample below to play WAV files stored as embedded resources. For some reason I *occasionally* get scratching and crackling. I'm using a couple WAVs that ship with...
1
by: Alan | last post by:
Is there a way in C# to have the compiler enforce that users use Resource Strings? Say I have a logging subsystem, and I want make sure that the only string values that get logged come from a...
12
by: TS | last post by:
i have a need to possibly enable mutli language support. What benefit do i get by using a resource file instead of a custom xml solution? thanks!
0
by: =?Utf-8?B?TG9nYW4=?= | last post by:
I have an application that plays short (2-5 seconds) sounds from resources at specific times. About 10% of the time the wav file will start playing fine and at some undetermined point during the...
11
by: Jon Mcleod | last post by:
I'm trying to wrap my ming around C#/CLR garbage collection. In an ASP.NET project, I'm having a problem because an object destructor is being called by another thread, long after my code is done....
8
by: raylopez99 | last post by:
I have the latest version of Visual Studio 2008 Professional, which allows you to create resource files (this is the .resx file, no?), unlike the Express version, which does not. I am trying to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.