ThinkMeta ConcurrentTasks is a C++ runtime that makes fine-grained parallelism worthwhile: it drives many small tasks on a few threads with almost no per-switch cost, so an algorithm can use every core without being rewritten around a new programming model. The science behind it is described under Research; the documentation covers the API in full.

Five showcases

What fine-grained parallelism gains is shown by five showcases built on ThinkMeta ConcurrentTasks: encoders for MP3, JPEG and Opus, and a gzip compressor. Each is a C++ port of a well-known reference implementation, writes exactly the same output byte for byte, and spreads the work on a single file over all cores. That is hard because these programs are sequential by design: every frame and every block depends on the state the one before it left behind. The fifth, ctJxl, starts from a reference that already runs in parallel, the JPEG XL encoder cjxl, and makes it faster by ordering its work differently, with the same output.

They are not products of their own but showcases with open source code: they show how ThinkMeta ConcurrentTasks is used, and anyone can reproduce the numbers. They run on the generic core DLL that anyone can download.

ctLame

13.9×

MP3 · bit-identical to LAME 4.0

45 hours of CD audio in 85 s instead of almost 20 minutes – more than 1,900 times real time.

ctJpeg

5.3×

JPEG · bit-identical to jpegli

Six photos, 99 megapixels, in 0.39 s – with jpegli’s smaller files, 3.6 times as fast as libjpeg-turbo.

ctDeflate

4.3×

gzip · bit-identical to libdeflate 1.26

1.2 GB at 232 instead of 53 MB/s at level 9, streaming with asynchronous I/O – a 5.2 GB file needs less than 150 MB of memory.

ctOpus

4.5×

Opus · bit-identical to opusenc

At maximum complexity twice as fast as opusenc at minimum complexity. Live: 1,024 streams in real time, one task each, without a missed deadline.

ctJxl

1.6×

JPEG XL · bit-identical to cjxl 0.13

cjxl already runs in parallel; ctJxl orders its work differently: photos at the default quality 1.6 times as fast, animations up to 7 times. Preliminary.

Same bits. A fraction of the time.

One API, two core DLLs

Your code is written against the open API of ThinkMeta ConcurrentTasks. Underneath sits the core DLL, which drives the tasks. It comes in two forms:

Generic core DLL

The way in – and often all you need

  • Free to download, with the API, documentation and samples
  • Free for evaluation and non-commercial use; licensed for your product
  • All showcase numbers are measured with it

Optimised core DLL

For maximum performance in your product

  • Tuned to your target hardware and to the load profile of your application
  • Same API: you swap the DLL, your code stays unchanged
  • Shipped with your product under a commercial licence

Getting started

Getting started is simple – and often the first step is all it takes.

  1. Try it. Download the generic DLL and put ThinkMeta ConcurrentTasks to work in your own code – right away and free of charge.
  2. License it. If the generic DLL gives you what you need, a commercial licence is all it takes to ship it with your product.
  3. Optimise it – if you want more. We tune the core DLL to your target hardware and your workload. Generic and optimised DLL go head to head on your hardware, and you decide on your own numbers.

Questions along the way? Get in touch – we are happy to help.

Looking for first adopters

For the first release we are looking for teams who want to run ThinkMeta ConcurrentTasks on a real, compute- or latency-critical workload – game engines, medical imaging and signal processing, simulation, real-time media – and help shape it. Get in touch.

Status

ThinkMeta ConcurrentTasks is in active development; the Windows and Linux builds (x64) are the current focus.

Roadmap

  • Windows and Linux version – end of 2027
  • Embedded systems – end of 2028
  • Xbox and PlayStation – end of 2029

Target dates.

An unhandled error has occurred. Reload