xHarbour Reference Documentation > Command Reference xHarbour Developers Network  

SET BACKGROUNDTICK

Defines the processing interval for background tasks.

Syntax

SET BACKGROUNDTICK <nInterval>

Arguments

<nInterval>
This is a numeric value specifying the number of instructions to be processed by the xHarbour virtual machine before a new cycle of background task processing is started. The default value is 1000.

Description

SET BACKGROUNDTICK can be used to "fine tune" background task processing. The default value of 1000 is usually adequate for a good balance between regular and background task processing.

Background tasks run concurrently with the main program. When <nInterval> is enlarged, the main program gets more CPU time since less time is required for background task checking. Reducing <nInterval> improves the response time for background tasks.

Info

See also:HB_BackGroundAdd(), Set(), SET BACKGROUND TASKS
Category: Background processing , SET commands , xHarbour extensions
Source:rtl\set.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe