Re: Multi-threaded - thanks
Re: Multi-threaded - thanks
- Subject: Re: Multi-threaded - thanks
- From: Christopher Nebel <email@hidden>
- Date: Sat, 8 Nov 2003 13:03:00 -0800
On Nov 7, 2003, at 7:24 PM, Bill Briggs wrote:
At 2:22 PM -0800 07/11/03, Christopher Nebel wrote:
Before you couldn't even click in a second Script Editor window to
run a script. The system just beeped at you. Now you can actually
run a second thread at the same time as the first.
I had thought you were referring to applets, but this bit means
you're actually talking about Script Editor. Yes, Script Editor 2.0
will run multiple scripts at once.
Which one could never do before, correct?
It can do this because AppleScript has (and has always had)
sufficient infrastructure to do cooperative threading.
Which one could never actually use before because the editor wouldn't
allow it, correct?
Well, Script Editor didn't. There was nothing stopping someone clever
from writing an editor that did work this way, it's just that no one
did, as far as I know. The point is that this isn't some magical new
ability in AppleScript itself.
Of course, trying to thread two executions of the same script may or
may not work well, since AppleScript lacks any concept of
synchronization or critical sections.
Which it will not lack in a soon-to-be-released update?
That is not expected to change any time soon. It's on the list, but a
rather long way down.
So correct this if it's wrong. The ability to run two scripts in
Script Editor simultaneously is not related to the FIFO/LIFO change,
but some other change in Script Editor itself.
That's correct.
--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.