A simple multithreading question

Please don't post Bullet support questions here, use the above forums instead.
User avatar
projectileman
Posts: 109
Joined: Thu Dec 14, 2006 4:27 pm
Location: Colombia

A simple multithreading question

Post by projectileman »

Hi.
I know that this is an stupid question....

Are global read-only variables supported in a multithread (multiprocessor) enviroment??

thanks for your time.

:mrgreen:
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: A simple multithreading question

Post by Erwin Coumans »

It depends on which architecture.

On multi-core processors like Intel Core 2 Duo this it is fine to share constant globals without the need for synchronization.

On Playstation 3 SPU there are no shared global variables, only a 256kb (private) locale store memory. This means you have do transfer/DMA any data you need from shared main memory into the 256kb local storage memory.

Hope this helps,
Erwin