> For the complete documentation index, see [llms.txt](https://doc.velneo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.velneo.com/28/velneo-vserver/funcionalidades/multi-hilo.md).

# Multi-hilo

Velneo vServer y Velneo vClient son multi-hilo. Esto quiere decir que tienen la capacidad de ejecutar tareas de forma simultánea.

Esta funcionalidad es **automática**.

Cuando un Velneo vClient se conecta con un Velneo vServer genera un hilo principal. Todos los [procesos](/28/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/proceso.md) que se lanzan en [primer plano](https://doc.velneo.com/28/velneo-vserver/funcionalidades/pages/-M7D76o_Sy2afrMxP6EU#planos-de-ejecución-de-procesos), las [funciones](/28/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/funcion.md) y los [manejadores de evento](/28/velneo-vdevelop/proyectos-objetos-y-editores/proyecto-de-aplicacion/sub-objetos-de-vistas-de-datos/manejador-de-evento.md), se ejecutan a través de ese hilo principal.

Desde un Velneo vClient cada proceso ejecutamos en [2º plano](https://doc.velneo.com/28/velneo-vserver/funcionalidades/pages/-M7D76o_Sy2afrMxP6EU#planos-de-ejecución-de-procesos) (multi-tarea), se ejecutará en un nuevo hilo de Velneo vClient, quedando el hilo principal libre para poder seguir haciendo otras cosas de la aplicación.

Un proceso que ejecutamos en [tercer plano](https://doc.velneo.com/28/velneo-vserver/funcionalidades/pages/-M7D76o_Sy2afrMxP6EU#planos-de-ejecución-de-procesos) desde Velneo vClient, se ejecutará a través del hilo principal de Velneo vClient y en el servidor será ejecutado en un nuevo hilo.

Los procesos ejecutados en [4º plano](https://doc.velneo.com/28/velneo-vserver/funcionalidades/pages/-M7D76o_Sy2afrMxP6EU#planos-de-ejecución-de-procesos) y las [tareas programadas](/28/velneo-vadmin/tareas.md) se envían a una cola y ejecutan de forma secuencial en un mismo hilo independiente del resto.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.velneo.com/28/velneo-vserver/funcionalidades/multi-hilo.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
