Hi.
I know that this is an stupid question....
Are global read-only variables supported in a multithread (multiprocessor) enviroment??
thanks for your time.
A simple multithreading question
-
- Posts: 109
- Joined: Thu Dec 14, 2006 4:27 pm
- Location: Colombia
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: A simple multithreading question
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
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