Synchronising multiple threads

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
leobodnar
Junior Member
Posts: 4
Joined: Mon May 07, 2018 9:26 am

Synchronising multiple threads

Postby leobodnar » Thu Oct 15, 2020 10:58 am

What are the ways of having multiple threads synchronised?
Say 7 threads are waiting and get released by the 8th at once?
Wiring 8 single ports together will work but is silly.

Essentially - can several threads wait on a shared resource?

Leo
User avatar
CousinItt
XCore Addict
Posts: 178
Joined: Wed May 31, 2017 6:55 pm

Postby CousinItt » Thu Oct 15, 2020 10:38 pm

Can you be a bit more specific about where these threads reside? Are they running on the same core, the same tile, or anywhere in a network of devices?
leobodnar
Junior Member
Posts: 4
Joined: Mon May 07, 2018 9:26 am

Postby leobodnar » Thu Oct 15, 2020 11:44 pm

CousinItt wrote:
Thu Oct 15, 2020 10:38 pm
Can you be a bit more specific about where these threads reside? Are they running on the same core, the same tile, or anywhere in a network of devices?
Each thread/task is running on its own logic core on the same tile.
Perhaps, using timer event is viable (assuming all timers on the same tile report the same time.)
Leo

Who is online

Users browsing this forum: No registered users and 7 guests