Alice Community  

Go Back   Alice Community > Alice 3 > How Do I?

Reply
 
Thread Tools Display Modes
do in thread???
Old
joethechicken
Junior Member
 
Status: Offline
Posts: 9
Join Date: Feb 2012
Location: in a pineapple under the sea
Default do in thread??? - 02-11-2012, 10:11 PM

Hi, I can't figure out what the difference is between doing something in a thread and doing it in order. Some clarification would help.

Thanks
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 02-11-2012, 11:48 PM

If you mean doing something in the methods or events, they are almost the same, but having a do together could change the outcome. If you want something to happen in an order and have other things running together at the same time, you would put the do in order in the dotogether.


Does that make sense?


Sinmplest terms.

Do in order makes operations occur within another function.


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 02-12-2012, 12:52 AM

What.

Do in order does executes the commands in order, moving onto the next command after the first one is finished. The do in order clause is finished when the last command is finished executing.

Not sure what you mean by threads.

Functions have absolutely nothing to do with it.


(')>
   
Reply With Quote
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Arrow 02-12-2012, 07:58 AM

X and Jedi, he's talking about Alice 3 (look at the sub-forum title).

I haven't tested it,but I believe "do in order" simply does the enclosed statements in order and waits for them to complete, but "do in thread" does the enclosed statements in order, but at the same time it moves on to the statement after the "do in thread".

"Do in order" waits for the nested statements to complete before moving on.

"Do in thread" does not wait for the nested statements to complete before moving on (ie. it has a duration of 0 seconds).

Makes sense?


█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [-]
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 02-12-2012, 09:01 AM

Oops.

You got me there, arty. Totally missed the subforum.

Good catch.


(')>
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 02-12-2012, 01:01 PM

Quote:
Originally Posted by x2495iiii View Post
What.

Do in order does executes the commands in order, moving onto the next command after the first one is finished. The do in order clause is finished when the last command is finished executing.

Not sure what you mean by threads.

Functions have absolutely nothing to do with it.
Well, I was having a hard time explaining. First thing, I was on my phone, second thing, it was at 11PM, and third of all, I was also confused by his question. Thanks Arty, I didn't see that to. Dang.


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.