Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Thread Tools Display Modes
Old 12-04-2006, 12:34 AM
jorgen jorgen is offline
Join Date: Dec 2001
Posts: 80
Default ZIP with low priority


I'm creating an automated backup utility that would perform copying with data compression in ZIP format.

The thing is, I wanna run it with a real low priority, so that users don't have lack of performance during backup procedure.

Already tried Abbrevia component with low prio setting, but it just occupies available resources, not keeping it down at the minimum.

My question is - do you have some experience with compression components that would keep their work at low priority ?
Reply With Quote
Old 12-04-2006, 02:16 AM
mshkolnik mshkolnik is offline
Senior Member
Join Date: Jul 2001
Posts: 4,195
Default RE: ZIP with low priority

You may use any compression component.

All what you need is to compress in thread and to define the low priority for your thread:
yourThread.Priority := tpLowest
yourThread.Priority := tpIdle

With best regards, Mike Shkolnik
Reply With Quote
Old 12-04-2006, 02:17 AM
digitiger digitiger is offline
Senior Member
Join Date: Jan 2001
Posts: 716
Default RE: ZIP with low priority

The correct way for doing such things is to use multithreaded application

This way you can not only set the required priority level (at thread level and not necessarily for complete application).

If you need to learn as how to do multi threaded programming with Delphi then you can use following wonderfully simple example:

also There is another example available which can be of use to you because it searches for files and creates their list in recursive manner:

Hope it helps and if it does then do accept the answere
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT. The time now is 11:34 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.