Would Task-based programming in C++ require new language standard features?

So I saw this video on Youtube with all these C++ masters on GoingNative 2012 : Interactive panel where everybody could ask the questions.

This is the video I was talking about: GoingNative 2012 – Day 1 – Interactive Panel: The importance of being native

And at time 0:24:00 someone put a very interesting question:

We’ve been doing concurrent programming for some time using pthreads,
using windows threads, and so on and I’m so happy that C++ and C
caught up with concurrent programming, but it seems to me like it’s
already behind by five years or ten years because right now we have we
have all these powerful multicores and the programming of these
multicores really should not be based on threads, it should be
task-based […] and Microsoft has the PPL library and so on and
this is totally not reflecting in the C++ standard. […] The only
thing I’m afraid of is that the standard could be locked into threads
and sort of make it very difficult to move to Task-Based
Programming

Now I’m quite new to these concepts and I’m a little confused. What is actually Task-Based Programming. Does this term refer to the same thing that Lock-Free Programming refers to? Are these two equivalent terms or are there any links between them?

3

Microsoft has the “Task Parallel Library,” or TPL.

It’s a higher-level abstraction over threads, and it’s library-based, so I see no reason why something similar could not be built in C++, since the TPL is already thread-based, and it doesn’t depend on special features in the language standard for its implementation (although the keywords async and await were added to the C# compiler to make such programming easier).

A Task in the Microsoft ecostructure is more or less equivalent to a Future or a Promise. Basically, it’s a non-blocking (asynchronous) function; you call it, it returns control back to you while it executes on a new thread, and then you retrieve the return value at some later time when it becomes available.

The TPL has other facilities like Parallel.For, which allows you to process a loop concurrently, using multiple threads. All of these things could be implemented in C++ as library functions. In fact, such a library has already been written.

As far as I know, the PPL (Parallel Patterns Library for Microsoft C++) doesn’t depend on any special language features.

4

There have been threads-via-blocks libraries for ages in cpp.
There’s Intel’s Thread Building Blocks that is quite good, and then there’s similar things like OpenMP that allows you to abstract threading in a ‘let the system do it for you’ kind of way (this is supported by VC++, you have to set the /openmp flag in your builds)

Microsoft is also working on Casablanca, which might not be a truly generic task library, but is a framework for writing task-based systems (mainly for web app purposes) using something similar to Erlang’s actor model

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật