what are threads?

Typically: "How do I... ", "How can I... " questions
Post Reply
qizzle
Posts: 15
Joined: 27 Nov 2013, 19:49

what are threads?

Post by qizzle »

I just need a laymans explanation of what threads are and what they do? when do you use it and why?

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: what are threads?

Post by coppelia »

Hello,

for a general explanation on threads, check the Wikipedia entry.
When related to V-REP and its child scripts:
  • non-threaded child scripts: they are executed at each simulation pass, similar to a function that is called at each simulation pass.
  • threaded child scripts: they are (by default) called just once, and execute asynchronously (by default) to the main simulation loop. You could say that they are executing in parallel with the main simulation loop.
Cheers

Post Reply