AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de gestión de procesos / Tareas paralelas
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Triggers the execution of a parallel task.
Example
// Use the syntax 3
t3bis is Description of ParallelTask
t3bis.Procédure = Procedure3bis
t3bis.Parameter[1] = Today()
t3bis.Parameter[2] = TimeSys()
t3bis.Exécute()
Syntax

Running a parallel task identified by its description (Description of ParallelTask variable) Hide the details

<Result> = ParallelTaskExecute(<Task description>)
<Result>: ParallelTask variable
ParallelTask variable corresponding to the task run.
<Task description>: Description of ParallelTask variable
Name of the Description of ParallelTask variable that describes the task to be executed.
Remarks
  • The task is saved in the queue of tasks to run.
  • <Description of ParallelTask>.Execute is not a blocking function and does not wait for task to be completed.
  • Comparison between the different types of copy for the HFSQL context:
    Type of copyBenefitsDrawbacks
    Full copyCopies:
    • the extensive connection parameters (connections, physical paths, ...).
    • the positions, the filters, ... defined on the data files.
    • the queries.
    Memory consumption (on the client and on the server).
    Light copyCopies the extensive connection parameters (connections, physical paths, ...).
    No memory consumption on the server.
    The records and the current filters are not copied. Therefore, the records must be repositioned by HReadSeek for example.
    No copy of queries.
    Memory consumption on the Client computer
    Delayed copyNo memory consumption (on the client and on the server). Risk: If the extended connection parameters are modified, the last modification will be taken into account.
    The records and the current filters are not copied. Therefore, the records must be repositioned by HReadSeek for example.
    No copy of queries.

In most cases, the delayed copy is recommended provided that you don't change the connection parameters and that you perform the necessary calls to HReadSeek.
Related Examples:
Using parallel tasks Unit examples (WINDEV): Using parallel tasks
[ + ] The parallel tasks are used to speed up the process times and to improve the reactivity of an application.
This example presents the functions and types of variables required to use the parallel tasks:
- running parallel tasks,
- interaction with the controls,
- continuation tasks.
Component: wd290vm.dll
Versión mínima requerida
  • Versión 28
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 23/06/2023

Señalar un error o enviar una sugerencia | Ayuda local