Threading

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
nskd
Newbie
Posts: 15
Joined: Wed May 29, 2019 2:02 pm

Threading

Post by nskd » Thu Jul 09, 2020 3:57 pm

Hi,

Is Macro Scheduler able to create threads and perform parallel programming?

User avatar
Grovkillen
Automation Wizard
Posts: 1131
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Threading

Post by Grovkillen » Thu Jul 09, 2020 4:53 pm

I believe the events triggered by "on event" commands are handled in separate threads.
Let>ME=%Script%

Running: 15.0.27
version history

nskd
Newbie
Posts: 15
Joined: Wed May 29, 2019 2:02 pm

Re: Threading

Post by nskd » Sun Jul 19, 2020 2:11 am

I think macro scheduler isn’t able to perform multi threading Processing like other types of programming languages like Python.

I’m trying overcome the main dialog freeze up when a push button was pressed for Processor intense calculation and data processing. In python, I can use worker threading class to overcome this, to prevent the main dialog from “freezing”.

Anyway MS can do the same?

User avatar
Grovkillen
Automation Wizard
Posts: 1131
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Threading

Post by Grovkillen » Sun Jul 19, 2020 2:35 am

Compile multiple exe files is my take on multi threading.
Let>ME=%Script%

Running: 15.0.27
version history

nskd
Newbie
Posts: 15
Joined: Wed May 29, 2019 2:02 pm

Re: Threading

Post by nskd » Fri Jul 31, 2020 4:46 am

Looks like Macro Scheduler isn’t meant for threading. That’s the limitation for MS.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Threading

Post by Marcus Tettmar » Sun Aug 02, 2020 2:20 pm

Dialog events, and OnEvent handlers are processed in a separate thread to the main script. That said, Macro Scheduler is designed as a high level automation tool and doesn't offer the same threading capabilities of more traditional, lower level programming languages.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts