Processor scheduling algorithms

Work stealing

In parallel computing, work stealing is a scheduling strategy for multithreaded computer programs. It solves the problem of executing a dynamically multithreaded computation, one that can "spawn" new threads of execution, on a statically multithreaded computer, with a fixed number of processors (or cores). It does so efficiently in terms of execution time, memory usage, and inter-processor communication. In a work stealing scheduler, each processor in a computer system has a queue of work items (computational tasks, threads) to perform. Each work item consists of a series of instructions, to be executed sequentially, but in the course of its execution, a work item may also spawn new work items that can feasibly be executed in parallel with its other work. These new items are initially put on the queue of the processor executing the work item. When a processor runs out of work, it looks at the queues of the other processors and "steals" their work items. In effect, work stealing distributes the scheduling work over idle processors, and as long as all processors have work to do, no scheduling overhead occurs. Work stealing contrasts with work sharing, another popular scheduling approach for dynamic multithreading, where each work item is scheduled onto a processor when it is spawned. Compared to this approach, work stealing reduces the amount of process migration between processors, because no such migration occurs when all processors have work to do. The idea of work stealing goes back to the implementation of the Multilisp programming language and work on parallel functional programming languages in the 1980s. It is employed in the scheduler for the Cilk programming language, the Java fork/join framework, the .NET Task Parallel Library, and the Rust Tokio runtime. (Wikipedia).

Work stealing
Video thumbnail

Misemployment

Misemployment can be just as bad as unemployment. SUBSCRIBE to our channel for new films every week: http://tinyurl.com/o28mut7 If you like our films take a look at our shop (we ship worldwide): http://www.theschooloflife.com/shop/all/ Brought to you by http://www.theschooloflife.com Pro

From playlist WORK + CAPITALISM

Video thumbnail

The Labor Force

In our society, most people have to have jobs. But what qualifies as a job? How do we determine who is part of the labor force? How has globalization impacted the labor force? We've all heard terms like outsourcing and offshoring, what do those mean? What is a gig economy? Let's get a clos

From playlist Economics

Video thumbnail

NOTACON 8: Hacking the Workplace: How to Make the Most with the Least

Speaker: Alex Papadimoulis Until someone figures how to hack their way to Free Living (and no, squatting at the parents does not count), we've all got bills to pay. And to pay bills, you need money. And to get money, you need a job. And a job means work... or does it? I've spent most of m

From playlist Notacon 8

Video thumbnail

How to Find Fulfilling Work

The key to finding fulfilling work is to think a lot, analyse one's fears, understand the market, reflect on capitalism. Find out more by attending our one-day workshop "Finding a Fulfilling Job": https://goo.gl/LUB7V8 If you like our films, take a look at our full shop too: https://goo

From playlist WORK + CAPITALISM

Video thumbnail

How to Find Meaningful Work

Contrary to some expectations, it isn’t only money we want from work. We also need our work to feel ‘meaningful’. But what exactly is meaningful work, and where can we find more of it? Find out more by reading our book "How to find fulfilling work": http://www.theschooloflife.com/shop/how-

From playlist WORK + CAPITALISM

Video thumbnail

What is the Sharing Economy?

In this video, you’ll learn more about the sharing economy. Visit https://www.gcflearnfree.org/using-the-web-to-get-stuff-done/what-is-the-sharing-economy/1/ for our text-based lesson. This video includes information on: • An explanation of the sharing economy • Examples of the sharing ec

From playlist The Sharing Economy

Video thumbnail

The Children of Snobs

It can be deeply painful to be the child of snobs. That is, to be someone who received a kind of love in our formative years that was heavily dependent on our performance, not on our essence. It can be enough to make a mess of our lives, unless we realise - and get on top of - the dynamics

From playlist WORK + CAPITALISM

Video thumbnail

The Nightmare of Colleagues

Some of what makes our working lives especially difficult are those unavoidable features of most offices: colleagues… If you like our films, take a look at our shop (we ship worldwide): https://goo.gl/lBqiU3 Join our mailing list: http://bit.ly/2e0TQNJ Or visit us in person at our Londo

From playlist WORK + CAPITALISM

Video thumbnail

Scotland Ruby 2011 - Great Developers Steal

by: Ben Scofield There are more smart people building software now than there have been at any point in the past, which means that it's more important than ever to stay on top of new developments, libraries, frameworks, and everything else. To really take advantage of this wealth of innov

From playlist Scotland Ruby 2011

Video thumbnail

13. The Cilk Runtime System

MIT 6.172 Performance Engineering of Software Systems, Fall 2018 Instructor: Tao B. Schardl View the complete course: https://ocw.mit.edu/6-172F18 YouTube Playlist: https://www.youtube.com/playlist?list=PLUl4u3cNGP63VIBQVWguXxZZi0566y7Wf This class is focused on the Cilk runtime system. I

From playlist MIT 6.172 Performance Engineering of Software Systems, Fall 2018

Video thumbnail

Most Famous Ethical Puzzle: The Frege-Geach Problem - Philosophy Tube

One of the most famous and difficult problems in ethics! The issue that killed moral noncognitivism – The Frege-Geach Problem! Ethics Playlist: https://www.youtube.com/playlist?list=PLvoAL-KSZ32ecfEjoNjMJyKTFUS5-hNr9 Subscribe! http://www.youtube.com/subscription_center?add_user=thephilos

From playlist A-Level Philosophy

Video thumbnail

We Need a Bigger Definition of Creativity

► Please Subscribe to My Channel Here - http://bit.ly/spencervideos When you the word “creative,” you might think of a painter or a playwright or an author or a photographer or a filmmaker or a chef. In other words, you might think of people who make things. I think it’s what we mean wh

From playlist What Is Creativity?

Video thumbnail

Alfred Mele - Philosophy of Free Will

Free will is a classic and perennial problem in philosophy. It is a probe of profound issues of how the world works as well as how the mind works. What are the primary issues of free will? What are the opposing views? Can philosophical analysis help? What are the philosophical challenges?

From playlist Understanding Free Will - Closer To Truth - Core Topic

Video thumbnail

How Multitasking Is Affecting the Way You Think with Clifford Nass

Watch, learn and connect: https://stanfordconnects.stanford.edu/ Technology continues to evolve and play a larger role in all of our daily lives. This huge growth in media (television, computers and smart phones) has changed our culture of the way in which we use media. More devices has

From playlist STANFORD+CONNECTS

Video thumbnail

Is Breakfast REALLY the Most Important Meal? | Pop History

J.D. Witherspoon puts four hungry competitors to the test to find out how much they really know about savory foods! The Food That Built America returns to The History Channel on Sunday, 2/27 at 9/8c. #PopHistory Subscribe for more HISTORY: http://histv.co/SubscribeHistoryYT Check out e

From playlist HISTORY EXPLAINED: History Digital Exclusives

Video thumbnail

Lec 13 | MIT 6.172 Performance Engineering of Software Systems, Fall 2010

Lecture 13: Parallelism and Performance Instructor: Charles Leiserson View the complete course: http://ocw.mit.edu/6-172F10 License: Creative Commons BY-NC-SA More information at http://ocw.mit.edu/terms More courses at http://ocw.mit.edu

From playlist MIT 6.172 Performance Engineering of Software Systems

Video thumbnail

LA Ruby Conf 2012 Great Developers Steal by Ben Scofield

If you take a look at software today, you'll see more smart people building things than there ever have been before. The problem? They're all working in different languages, on different platforms, with different concepts. To take advantage of the full breadth of work that's being done, we

From playlist Los Angeles Ruby Conference 2012

Video thumbnail

7. Races and Parallelism

MIT 6.172 Performance Engineering of Software Systems, Fall 2018 Instructor: Julian Shun View the complete course: https://ocw.mit.edu/6-172F18 YouTube Playlist: https://www.youtube.com/playlist?list=PLUl4u3cNGP63VIBQVWguXxZZi0566y7Wf Professor Shun discusses races and parallelism, how ci

From playlist MIT 6.172 Performance Engineering of Software Systems, Fall 2018

Video thumbnail

The Impostor Syndrome

What holds us back from being more confident at work is often a sense that we are fundamentally different from those who succeed. We suffer – needlessly – from The Impostor Syndrome. For gifts and more from The School of Life, visit our online shop: https://goo.gl/CfCf2N Y8c4WM Watch more

From playlist WORK + CAPITALISM

Video thumbnail

CMU Discrete Mathematics 5/3

Due to the COVID-19 pandemic, Carnegie Mellon University is protecting the health and safety of its community by holding all large classes online. People from outside Carnegie Mellon University are welcome to tune in to see how the class is taught, but unfortunately Prof. Loh will not be o

From playlist CMU 21-228 Discrete Mathematics

Related pages

Directed acyclic graph | Double-ended queue | Lock (computer science) | Expected value | Randomized algorithm | Non-blocking algorithm | Threading Building Blocks | Starvation (computer science) | Scheduling (computing)