Could someone explain me synchronised thread?

I was having problem with the touched event having a delay and i looked up the documentation for it and remarked the red rectangle which says “For thread safety, this property is not safe to read in an unsynchronized thread.”. Do this mean that if i create a “Synchronised Thread” then the delay will be gone?

There is no documentation on “Synchronised” thread.

8 Likes

it means this documentation didnt updated yet.

1 Like

A “thread” is like a separate instance of script execution. Different scripts are different threads, and coroutines are also different threads. The wait() command will delay the thread it’s in and only the thread it’s in. A “Synchronized” thread most likely just means that a thread runs at the same time period, or it IS the same thread.

11 Likes

Ok apparently people are still reading this one-year-old reply. Just a clarification since I didn’t really know at the time too, this is about the new Parallel Luau feature. Synchronized just means that the thread is running in serial (everything is done on a single core), and unsynchronized means it’s running in parallel on a separate processor core.

4 Likes