Page 1 of 1

Multi-threading and LiveCode

Posted: Thu Apr 21, 2016 1:09 pm
by klvs2001
I am writing a Proof of Concept where the stack interacts with Web Services. I want to stress the Web Service from a single stack with requests.

I'm sort of at a loss as to how to invoke multiple "threads" to the Web Service.

Should I use multiple cards with startup scripts? Or a looping structure with a number of loops specified?

It appears that the "load URL" function executes asynchronously. Am I missing something obvious?

Thank you,

Tom

Re: Multi-threading and LiveCode

Posted: Thu Apr 21, 2016 1:37 pm
by Klaus
Hi Tom,

if you mean "non-blocking" by "asynchronously" then that is correct.
Use a repat loop with "load url" then you can check their URLSTATUS later
for each url independently, if that is what you are after.


Best

Klaus