Multi-threading and LiveCode

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
klvs2001
Posts: 13
Joined: Wed Nov 11, 2015 6:27 pm

Multi-threading and LiveCode

Post by klvs2001 » Thu Apr 21, 2016 1:09 pm

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

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Multi-threading and LiveCode

Post by Klaus » Thu Apr 21, 2016 1:37 pm

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

Post Reply