(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
Parallel programming may not be so daunting
'Lock-free' parallel algorithms may match performance of more complex 'wait-free' algorithms
2014-03-24
ELSE PRESS RELEASES FROM THIS DATE:
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
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
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:
New tablet shows promise for the control and elimination of intestinal worms
Project to redesign clinical trials for neurologic conditions for underserved populations funded with $2.9M grant to UTHealth Houston
Depression – discovering faster which treatment will work best for which individual
Breakthrough study reveals unexpected cause of winter ozone pollution
nTIDE January 2025 Jobs Report: Encouraging signs in disability employment: A slow but positive trajectory
Generative AI: Uncovering its environmental and social costs
Lower access to air conditioning may increase need for emergency care for wildfire smoke exposure
Dangerous bacterial biofilms have a natural enemy
Food study launched examining bone health of women 60 years and older
CDC awards $1.25M to engineers retooling mine production and safety
Using AI to uncover hospital patients’ long COVID care needs
$1.9M NIH grant will allow researchers to explore how copper kills bacteria
New fossil discovery sheds light on the early evolution of animal nervous systems
A battle of rafts: How molecular dynamics in CAR T cells explain their cancer-killing behavior
Study shows how plant roots access deeper soils in search of water
Study reveals cost differences between Medicare Advantage and traditional Medicare patients in cancer drugs
‘What is that?’ UCalgary scientists explain white patch that appears near northern lights
How many children use Tik Tok against the rules? Most, study finds
Scientists find out why aphasia patients lose the ability to talk about the past and future
Tickling the nerves: Why crime content is popular
Intelligent fight: AI enhances cervical cancer detection
Breakthrough study reveals the secrets behind cordierite’s anomalous thermal expansion
Patient-reported influence of sociopolitical issues on post-Dobbs vasectomy decisions
Radon exposure and gestational diabetes
EMBARGOED UNTIL 1600 GMT, FRIDAY 10 JANUARY 2025: Northumbria space physicist honoured by Royal Astronomical Society
Medicare rules may reduce prescription steering
Red light linked to lowered risk of blood clots
Menarini Group and Insilico Medicine enter a second exclusive global license agreement for an AI discovered preclinical asset targeting high unmet needs in oncology
Climate fee on food could effectively cut greenhouse gas emissions in agriculture while ensuring a social balance
Harnessing microwave flow reaction to convert biomass into useful sugars
[Press-News.org] Parallel programming may not be so daunting'Lock-free' parallel algorithms may match performance of more complex 'wait-free' algorithms