AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de gestión de procesos / Hilos, semáforos, señales y mutex
  • Managing the multi-processors
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Modifies the management modes of threads. The available management modes are as follows:
  • the automatic or manual management of the critical sections on the procedures and on the methods.
  • the distribution of the execution of the threads on the different processors or on the different cores of the computer.
The automatic critical sections prevent the execution of a procedure or method by several threads simultaneously. The automatic critical sections are enabled by default.
AndroidWidget Android Java The ThreadMode function has no effect: the management mode is still multi-processor, with manual management of critical sections.
Sintaxis

Modifying the management modes of threads Ocultar los detalles

<Result> = ThreadMode(<New management modes>)
<Result>: Integer
Management modes of threads before the modification, combination of the constants below.
<New management modes>: Constant or combination of constants
Mode for managing the critical sections of procedures and methods:
threadAutoAutomatic management of critical sections: each procedure or method can only be executed by a single thread.
threadCriticalSection
(Default value)
Manual management of critical sections: each procedure or method can be executed by several threads simultaneously. In this case, you must protect the accesses to the resources shared between the different threads by critical sections.
Distribution of the threads on the processors or on the cores:
threadMonoProcessorAll the threads of the application are run on a single processor or on a single core.
threadMultiProcessor
(Default value)
The threads are automatically distributed among the different processors or among the different cores.
AndroidWidget Android The constants corresponding to the repartition of the threads on the processors or on the cores are not available.

Retrieving the management modes of threads Ocultar los detalles

<Result> = ThreadMode()
<Result>: Integer constant (or combination of constants)
Current management modes of threads:
Mode for managing the critical sections of procedures and methods:
threadAutoAutomatic management of critical sections: each procedure or method can only be executed by a single thread.
threadCriticalSection
(Default value)
Manual management of critical sections: each procedure or method can be executed by several threads simultaneously. In this case, you must protect the accesses to the resources shared between the different threads by critical sections.
Distribution of the threads on the processors or on the cores:
threadMonoProcessorAll the threads of the application are run on a single processor or on a single core.
threadMultiProcessor
(Default value)
The threads are automatically distributed among the different processors or among the different cores.
AndroidWidget Android The constants corresponding to the repartition of the threads on the processors or on the cores are not available.
Observaciones

Managing the multi-processors

This option should only be used in some advanced cases.
On a single-core single-processor computer, the threadMonoProcessor and threadMultiProcessor constants have no influence.
On a multi-core or multi-processor computer:
  • The threadMonoProcessor mode forces the application to use a single processor or a single core.
  • The threadMultiProcessor management mode allows you to return to normal operating mode: in this case, the system automatically manages the allocation of threads to processors or cores.
Componente: wd300vm.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 24/09/2024

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