Any concern about programming on Duo Core technology?

I just heard about Duo Core technology. It's about 2 cpus in one chip. Some say some applications running in single thread might run incorrectly with Duo Core cpu. Is that real? And any programming suggestion if we want to take advantages of Duo Core cpu?
Thanks : )
[282 byte] By [Monch] at [2007-11-20 2:33:05]
# 1 Re: Any concern about programming on Duo Core technology?
Just telling from my own experience,

The bad news: My company recently switched our product from working on a regular single-core CPU workstations to a dual core workstations.
Several problems have been found with the application which used to run flawlessly on a single-core CPU.

The good news: All the "new" problems found were related to synchronization of threads, so rewriting the synchronizing mechanisms solved these problems.

In a way, you can say that the move to dual core revealed problems that were always present but kept quiet waiting for a better CPU :)
Zachm at 2007-11-9 12:18:36 >
# 2 Re: Any concern about programming on Duo Core technology?
I just heard about Duo Core technology. It's about 2 cpus in one chip. Some say some applications running in single thread might run incorrectly with Duo Core cpu. Is that real? And any programming suggestion if we want to take advantages of Duo Core cpu?

Thanks : )

Single threaded applications will run correctly in a single core or multi-core CPU. It is the multi-threaded applications which may have problems on dual core CPU because 2 threads are really running concurrently, whereas in a single core CPU, technically only one thread is running at any given time. This problem can be solved by rewriting the synchronizing mechanisms.
CBasicNet at 2007-11-9 12:19:30 >
# 3 Re: Any concern about programming on Duo Core technology?
I just heard about Duo Core technology. It's about 2 cpus in one chip. Some say some applications running in single thread might run incorrectly with Duo Core cpu. Is that real? And any programming suggestion if we want to take advantages of Duo Core cpu?

Thanks : )
Single threaded programs have no problem on dual core CPU.
However, multithreaded programs can have problems if they've been badly programmed.
For example, the double check lock pattern doesn't work properly with most compilers. Namely those who don't put memory barriers when volatile variables are accessed.

http://www.dev-archive.com/forum/showthread.php?t=404711
SuperKoko at 2007-11-9 12:20:38 >