PRESS-NEWS.org - Press Release Distribution
PRESS RELEASES DISTRIBUTION

Parallel programming may not be so daunting

'Lock-free' parallel algorithms may match performance of more complex 'wait-free' algorithms

2014-03-24
(Press-News.org) Computer chips have stopped getting faster: The regular performance improvements we've come to expect are now the result of chipmakers' adding more cores, or processing units, to their chips, rather than increasing their clock speed.

In theory, doubling the number of cores doubles the chip's efficiency, but splitting up computations so that they run efficiently in parallel isn't easy. On the other hand, say a trio of computer scientists from MIT, Israel's Technion, and Microsoft Research, neither is it as hard as had been feared.

Commercial software developers writing programs for multicore chips frequently use so-called "lock-free" parallel algorithms, which are relatively easy to generate from standard sequential code. In fact, in many cases the conversion can be done automatically.

Yet lock-free algorithms don't come with very satisfying theoretical guarantees: All they promise is that at least one core will make progress on its computational task in a fixed span of time. But if they don't exceed that standard, they squander all the additional computational power that multiple cores provide.

In recent years, theoretical computer scientists have demonstrated ingenious alternatives called "wait-free" algorithms, which guarantee that all cores will make progress in a fixed span of time. But deriving them from sequential code is extremely complicated, and commercial developers have largely neglected them.

In a paper to be presented at the Association for Computing Machinery's Annual Symposium on the Theory of Computing in May, Nir Shavit, a professor in MIT's Department of Electrical Engineering and Computer Science; his former student Dan Alistarh, who's now at Microsoft Research; and Keren Censor-Hillel of the Technion demonstrate a new analytic technique suggesting that, in a wide range of real-world cases, lock-free algorithms actually give wait-free performance.

"In practice, programmers program as if everything is wait-free," Shavit says. "This is a kind of mystery. What we are exposing in the paper is this little-talked-about intuition that programmers have about how [chip] schedulers work, that they are actually benevolent."

The researchers' key insight was that the chip's performance as a whole could be characterized more simply than the performance of the individual cores. That's because the allocation of different "threads," or chunks of code executed in parallel, is symmetric. "It doesn't matter whether thread 1 is in state A and thread 2 is in state B or if you just swap the states around," says Alistarh, who contributed to the work while at MIT. "What we noticed is that by coalescing symmetric states, you can simplify this a lot."

In a real chip, the allocation of threads to cores is "a complex interplay of latencies and scheduling policies," Alistarh says. In practice, however, the decisions arrived at through that complex interplay end up looking a lot like randomness. So the researchers modeled the scheduling of threads as a process that has at least a little randomness in it: At any time, there's some probability that a new thread will be initiated on any given core.

The researchers found that even with a random scheduler, a wide range of lock-free algorithms offered performance guarantees that were as good as those offered by wait-free algorithms.

That analysis held, no matter how the probability of thread assignment varied from core to core. But the researchers also performed a more specific analysis, asking what would happen when multiple cores were trying to write data to the same location in memory and one of them kept getting there ahead of the others. That's the situation that results in a lock-free algorithm's worst performance, when only one core is making progress.

For that case, they considered a particular set of probabilities, in which every core had the same chance of being assigned a thread at any given time. "This is kind of a worst-case random scheduler," Alistarh says. Even then, however, the number of cores that made progress never dipped below the square root of the number of cores assigned threads, which is still better than the minimum performance guarantee of lock-free algorithms.

INFORMATION:

Additional background

Archive: "Multicore may not be so scary": http://web.mit.edu/newsoffice/2010/multicore-0930.html


ELSE PRESS RELEASES FROM THIS DATE:

New perspective for soil clean-up: Microscopic ciliates transport poisonous tar substances

New perspective for soil clean-up: Microscopic ciliates transport poisonous tar substances
2014-03-24
You must use a microscope to spot the new helpers that can assist in biological soil clean-up (bioremediation). They are small, mobile microorganisms, such as the unicellular slipper-shaped ciliates that can be found in stale water in a flower vase, where they feed on bacteria. New results from Aarhus University indicate that such mobile microorganisms can play a surprising key role in bioremediation of soil which is contaminated with so-called PAHs (Polycyclic Aromatic Hydrocarbons). PAH are toxic tar substances formed during incomplete combustion in, for example, car ...

New technique for identifying gene-enhancers

New technique for identifying gene-enhancers
2014-03-24
An international team led by researchers with the Lawrence Berkeley National Laboratory (Berkeley Lab) has developed a new technique for identifying gene enhancers - sequences of DNA that act to amplify the expression of a specific gene – in the genomes of humans and other mammals. Called SIF-seq, for site-specific integration fluorescence-activated cell sorting followed by sequencing, this new technique complements existing genomic tools, such as ChIP-seq (chromatin immunoprecipitation followed by sequencing), and offers some additional benefits. "While ChIP-seq is very ...

Smokers' bitter taste buds may be on the fritz

2014-03-24
Smokers and those who have quit cannot fully appreciate the full flavor of a cup of coffee, because many cannot taste the bitterness of their regular caffeine kick. This is the finding of a study led by Nelly Jacob of the Pitié-Salpêtrière Hospital APHP in France, published in Springer's journal Chemosensory Perception. It is already known that smoking, and especially the toxic chemicals in tobacco, causes a loss of taste among smokers. It also causes structural changes to the fungiform papillae of the tongue where the taste buds are located. However, it is not yet known ...

A mathematical equation that explains the behavior of nanofoams

A mathematical equation that explains the behavior of nanofoams
2014-03-24
This news release is available in Spanish. A research study, participated in by Universidad Carlos III de Madrid (UC3M), has discovered that nanometric-size foam structures follow the same universal laws as does soap lather: small bubbles disappear in favor of the larger ones. The scientific team, made up of researchers from the Consejo Superior de Investigaciones Científicas (Spanish National Research Council) - CSIC, the Universidad Pontificia Comillas de Madrid- UPCO, and UC3M, reached this conclusion after producing and characterizing nanofoam formed by ion ...

Plugging the hole in Hawking's black hole theory

2014-03-24
EAST LANSING, Mich. --- Recently physicists have been poking holes again in Stephen Hawking's black hole theory – including Hawking himself. For decades physicists across the globe have been trying to figure out the mysteries of black holes – those fascinating monstrous entities that have such intense gravitational pull that nothing – not even light – can escape from them. Now Professor Chris Adami, Michigan State University, has jumped into the fray. The debate about the behavior of black holes, which has been ongoing since 1975, was reignited when Hawking posted a ...

Patient enrollment, use, and satisfaction with patient portals

2014-03-24
Many physicians are adopting patient portals in response to governmental incentives for meaningful use (MU), but the stage 2 requirements for portal use may be particularly challenging for newer electronic health record (EHR) users. This study examines enrollment, use based on MU requirements, and satisfaction in a recently-adopting fee-for-service multispecialty system. The Centers for Medicare and Medicaid Services (CMS) financial incentives for meaningful use (MU)1 likely will persuade many reluctant doctors to adopt electronic health records (EHRs). However, there are ...

Research finds moving public assistance payments from cash to plastic cuts crime

2014-03-24
ATLANTA--Counties that change their delivery of public assistance benefits from paper checks to an Electronic Benefit Transfer (EBT) system – using debit cards – see their street crimes drop significantly, according to a study published today by the National Bureau of Economic Research. Titled "Less Cash, Less Crime: Evidence from the Electronic Benefit Transfer Program," the study is the first to empirically examine whether the introduction of an EBT system, which reduces the amount of cash circulated on the streets, will disrupt criminal activities that rely on the ...

First look at breast microbiota raises tantalizing questions

2014-03-24
The female breast contains a unique population of microbes relative to the rest of the body, according to the first-ever study of the breast microbiome. That study sought to lay the groundwork for understanding how this bacterial community contributes to health and disease, says first author Camilla Urbaniak, a PhD student at the University of Western Ontario. The research was published ahead of print in Applied and Environmental Microbiology. "Proteobacteria was the dominant phylum in healthy breast tissue," says Urbaniak, noting that it is found only in small proportions ...

Prostate treatment lasts, preserves fertility

2014-03-24
SAN DIEGO (March 24, 2014)—Shrinking the prostate without surgery can provide long-term relief to men with this common condition that causes annoying symptoms, such as frequent trips to the bathroom, suggests a study of nearly 500 men. According to research being presented at the Society of Interventional Radiology's 39th Annual Scientific Meeting, 72 percent of men experienced symptom improvement three years after having a new, minimally invasive, image-guided treatment performed by interventional radiologists called prostate artery embolization (PAE). "The results of ...

New implant shows promise for painful osteoporotic spine fractures

2014-03-24
SAN DIEGO (March 24, 2014)—Individuals suffering from spinal fractures—caused by osteoporosis or weakened bones—now have another option to reduce pain, restore function and improve quality of life, according to a study of 300 patients treated with a new type of vertebral augmentation. Results of a randomized, controlled multicenter trial on a new implant treatment for vertebral compression fractures are being reported for the first time at the Society of Interventional Radiology's 39th Annual Scientific Meeting. Made of medical polymer, the implant is designed to treat ...

LAST 30 PRESS RELEASES:

Can justice happen on a laptop? Study says yes

Landmark FAU/CSU study: More paid time off keeps US workers from quitting

Traditional and novel virologic markers for functional cure and HBeAg loss with pegylated interferon in chronic hepatitis B

Novel quantum refrigerator benefits from problematic noise

AI tools help decode how TCM formulas work

Rethinking ultrasound gel: a natural solid pad for clearer, more comfortable imaging

Research from IOCB Prague reveals a previously unknown mechanism of genetic transcription

Stimulating the brain with electromagnetic therapy after stroke may help reduce disability

Women with stroke history twice as likely to have another during or soon after pregnancy

Older adults’ driving habits offer window into brain health, cognitive decline

Data analysis finds multiple antiplatelets linked to worse outcomes after a brain bleed

Tear in inner lining of neck artery may not raise stroke risk in first 6 months of diagnosis

New risk assessment tool may help predict dementia after a stroke

Stroke survivors may be less lonely, have better recovery if they can share their feelings

New app to detect social interactions after stroke may help improve treatment, recovery

Protein buildup in brain blood vessels linked with increased 5-year risk of dementia

Immunotherapy before surgery helps shrink tumors in patients with desmoplastic melanoma

Fossilized plankton study gives long-term hope for oxygen depleted oceans

Research clarifies record-late monsoon onset, aiding northern Australian communities

Early signs of Parkinson’s can be identified in the blood

Reducing drug deaths from novel psychoactive substances relies on foreign legislation, but here’s how it can be tackled closer to home

Conveying the concept of blue carbon in Japanese media: A new study provides insights

New Woods Hole Oceanographic Institution study cautions that deep-sea fishing could undermine valuable tuna fisheries

Embedding critical thinking from a young age

Study maps the climate-related evolution of modern kangaroos and wallabies

Researchers develop soft biodegradable implants for long-distance and wide-angle sensing

Early-life pollution leaves a multigenerational mark on fish skeletons

Unlocking the genetic switches behind efficient feeding in aquaculture fish

Fish liver self-defense: How autophagy helps pufferfish survive under the cold and copper stress

A lost world: Ancient cave reveals million-year-old wildlife

[Press-News.org] Parallel programming may not be so daunting
'Lock-free' parallel algorithms may match performance of more complex 'wait-free' algorithms