PDA

View Full Version : do in thread???


joethechicken
02-11-2012, 09: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

jediaction
02-11-2012, 10: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.

x2495iiii
02-11-2012, 11:52 PM
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.

arty-fishL
02-12-2012, 06: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?

x2495iiii
02-12-2012, 08:01 AM
Oops.

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

Good catch.

jediaction
02-12-2012, 12:01 PM
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.