When an application is "parallelized," certain tasks are divided up among the processors. But these separate tasks usually need to dip into a shared memory cache to access data, according to a Technology Review [url=http://www.technologyreview.com/read_article.aspx?id=17682&ch=infotech]report[/url]. When one transaction is accessing memory and another transaction needs to access the same part of the memory, and proper safeguards aren't put in place, a system can crash. Standard parallel programming requires a programmer to anticipate these simultaneous activities and make sure that once a certain activity begins to access memory, it "locks" out other activities so they wait until the transaction is completed.
When implemented correctly, the locks speed up parallel systems, but putting them into practice is complicated, according to the Technology Review. For instance, two different applications could acquire locks at the same time, which forces them to wait for each other. Without some third party coming in to break up the "deadlock," the applications would stay frozen.
However, recent research from MIT, could make parallel programming easier, ultimately helping to keep personal-computing performance on track, notes the Technology Review. The researchers are proposing a new computing framework that combines specialized software instructions and modifications to multi-core hardware that could allow programmers to write software without having to deal with some tedious parallel-programming details.
The MIT researchers get the "lock" problem by using an approach called transactional memory, a research area that has exploded in the past five years, according to Krste Asanović, professor of electrical engineering and computer science at MIT. Transactional memory coordinates software operations so that programmers don't have to write it into their programs. It allows numerous transactions to share the same memory at the same time. When a transaction is complete, the system verifies that other transactions haven't made changes in the memory that would hinder the outcome of the first transaction. If they have, then the transaction is re-executed until it succeeds.
Currently, the dual-core systems aren't as affected by the lack of truly parallel programs as the coming quad-core systems will be, says Asanović. For the most part, operating systems such as Mac OS X are able to effectively split up applications on a dual-core system, notes the Technology Review. For example, a virus scanner runs unobtrusively in the background on one core, while applications such as Microsoft Word or Safari run on the other core, without their speed being hampered.
But when it comes to 4, 8, or 16 cores, the applications themselves need to be modified to garner more performance. Asanović says transactional memory won't be a silver bullet that makes it easier to program these systems, but he expects it to be a component of the future parallel-computing model. "It's one mechanism that appears to be useful," he told the Technology Review.
But despite some potential snafus along the way, Microsoft, AMD, Intel, and universities such as MIT and Stanford, among others, are all invested in making multi-core systems easier to program. In addition to improving transactional memory, researchers are exploring better ways of debugging parallel programs and also creating libraries of ready-made parallel operations so that programmers can plug chunks of code into software without having to work out the kinks each time, notes the Technology Review.
And market researchers at IDC believes multi-core processing may be one of the most significant industry developments of the past 40 years. By 2009, the third iteration of multicore processing technology will allow many new products to be created and challenge conventional IT infrastructure build-out, the research firm feels.
“Multicore processing will provide the flexibility, agility, and efficiency of future dynamic IT environments,†says Matt Eastwood, VP of IDC’s server research in a statement. "“Users expect significant price/performance improvements from these systems and anticipate that multicore will further accelerate the adoption of server virtualization technologies. Technology suppliers that prepare for this transition appropriately will be rewarded with increased revenue opportunities over the next few years."
I personally don't think we'll see quad-core Macs this year, but expect 'em to arrive in early 2007. And when the kinks of the multi-core processing are worked out, we'll see Macs with incredible performance levels.
Thoughts? Write me at daseller@earthlink.net