I can't help but feel that I've seen this post somewhere else...
"On one of my cards it said I had to find temperatures lower than -8. The numbers I uncovered were -6 and -7 so I thought I had won, and so did the woman in the shop. But when she scanned the card the machine said I hadn't.
"I phoned Camelot and they fobbed me off with some story that -6 is higher - not lower - than -8 but I'm not having it."
-Tina Farrell, a 23 year old thicky from Levenshulme, Manchester.
This is for a web app. I have a situation where I need to copy an bunch of files to another location but still give quick feedback to the user. Right now the file copy is inline and the performance is not great. I am considering threading off each file copy so I can give quick feedback to the user. If a copy fails it is not a big deal and the user will not access the copied files immediately. My concern is that hundreds of short running threads could drive CPU through the roof.... Does anybody have any experience with this or have any suggestions? Please let me know.
the normal approach to handle N jobs is to have a queue and a couple of threads; stuff all
the jobs in the queue, then let each of the threads fetch a job from the queue and execute
it, until the queue is empty. That way you get load balancing amongst the threads, and
only need a selectable but limited number of them, fitting the capabilities of the entire
whatever you do, chances are the limited bandwidth of your disk storage subsystem will keep
your CPU quite a long way away from the roof.
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
i am trying to restart and application from within by using a batch file.
this is my batch:
TASKKILL /F /IM MyApp.exe /T
when i run it by double clicking it - it does the job - closes and reopen MyApp.exe.
when i try to do it from the application by using :
System.Diagnostics.Process p = new System.Diagnostics.Process();
String path = Application.StartupPath + @"\";
p.StartInfo.FileName = path + @"ResetApp.bat";
the batch kill my application but doesn't restart it(doesn't get to the pause line in the batch file) - i guess that when my application is terminated it also kills the batch operation.
how can i detach the batch from the application, or is there other way to make my batch run from the application indepentlly?
I have a simple C# app to send e-mail. bud wen i click on send mail button i get this error:
Syntax error, command unrecognized. The server response was: AVG POP3 Proxy Server 7.5.494/7.5.503[269.15.8/1185].
I googled a lot bud nothin found. Somebody pls a idea?
I don't know what happend, bud i get now a another error:
Failure sending mail.
A connection attempt failed because the connection party did not properly responed after a period of time, or established connection failed because connected host has failed to respond.
ok well on 110 there's actually a pop3 server running.. and i think the smtp service was not started.
so you should activate the smtp service in exchange (i'm not sure but i think it's deactivated by default.)
Last Visit: 31-Dec-99 19:00 Last Update: 6-Dec-23 8:23