question

abuzarforu avatar image
abuzarforu asked Philip.Joung commented

multiple thread returns value

I have a scenario where I am calling two thread (which ofcourse is parallel execution) and each of the called thread has analysis property which is storing the return value as variable. After the thread execution I am losing the stored variables. Sorry I could not able to upload fftc file as it is showing not supported.
threadsdefault values
thread.jpg (131.1 KiB)
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

abuzarforu avatar image abuzarforu commented ·

no update still... Can anyone please help me?

0 Likes 0 ·

1 Answer

·
amichaels avatar image
amichaels answered

The problem of "disappearing" variables is due to the fact that each thread is running in its own tcl interpreter context. To communicate back to the main thread, you can use global variables. To set and get global variables, you must use the gget and gset commands on an eval step.

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.