Threads with xojoscript

Hallo,

my program runs 2 xojo script in 2 threads.

Both scripts call a public function.

What’s happen if the scripts call the public function at the same time?

Thanks !!