# Multiple threads?

**URL:** <https://forum.servoy.com/t/multiple-threads/14567>\
**Category:** Classic Servoy\
**Created:** [September 2, 2011, 12:08am UTC](https://forum.servoy.com/t/multiple-threads/14567 "2011-09-02T00:08:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maria](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@maria](https://forum.servoy.com/u/maria)\
**Post date:** [September 2, 2011, 12:08am UTC](https://forum.servoy.com/t/multiple-threads/14567/1 "2011-09-02T00:08:15Z")

</div>

Hi!

This might be a newbie type of question, don’t judge me too hard ![:)]( "Smile")  
We have multiple windows in our application. I clone a few forms and then bring them up in a new window.  
My concern is that if some lengthy operation is running in one of them then the user cannot do anything except viewing other windows before that operation has finished.  
In my particular scenario the time-consuming stuff runs in a global, not in the form itself. But it looks like it doesn’t really matter where the code is. Am I right?

Is there a way around it? Can I somehow have multiple threads running? (I’m guessing it’s about multithreading but I haven’t really worked with that before, so well… help! ![:D]( "Very Happy") )

Cheers,  
Maria

---

<div class="post-metadata">

**Author:** ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)\
**Post date:** [September 2, 2011, 7:28am UTC](https://forum.servoy.com/t/multiple-threads/14567/2 "2011-09-02T07:28:26Z")

</div>

Each Servoy Client in single threaded.

If you have lengthy processes to run, you can offload them to another client, usually either a batchprocessor or a headless client.

Batch processors are in general more usefull for repetetive tasks or processing queues of tasks, whereas Headless Clients are in general used for one-offs.

Paul

---

<div class="post-metadata">

**Author:** ![maria](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@maria](https://forum.servoy.com/u/maria)\
**Post date:** [September 2, 2011, 8:00am UTC](https://forum.servoy.com/t/multiple-threads/14567/3 "2011-09-02T08:00:41Z")

</div>

> pbakker:  
> Each Servoy Client in single threaded.
> 
> If you have lengthy processes to run, you can offload them to another client, usually either a batchprocessor or a headless client.
> 
> Batch processors are in general more usefull for repetetive tasks or processing queues of tasks, whereas Headless Clients are in general used for one-offs.
> 
> Paul

The “lengthy” process I’m talking about usually takes 2-4 seconds (some forms are fairly big, with lots of tabs and css’ed labels on them) but users might be impatient and start clicking on other forms expecting response and not having it.  
I don’t think it’s possible to offload them ![:roll:]( "Rolling Eyes")

Cheers,  
Maria

---

<div class="post-metadata">

**Author:** ![lwjwillemsen](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lwjwillemsen/32/4987_2.png) [@lwjwillemsen](https://forum.servoy.com/u/lwjwillemsen)\
**Post date:** [September 2, 2011, 9:31am UTC](https://forum.servoy.com/t/multiple-threads/14567/4 "2011-09-02T09:31:30Z")

</div>

Yes Paul, that’s a good one from Maria,

Can you speed up the client Servoy form UI processing ? Some secret app.server form acceleration check box ?

I can guess the answer…

Regards,
