Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

When to use thread bound filters?

tims666
Beginner
206 Views
Hi everyone, just joined the forum.
I'm new to parallel programming, and I have what is hopefully a simple question:
What are thread bound filters useful for? I got an inkling that they are mainly for interfacing with other threading solutions? But was wondering if say, tying an I/O filter to one thread might improve I/O speed at all?

Thanks!
Tim.
0 Kudos
2 Replies
RafSchietekat
Valued Contributor III
206 Views
My current understanding is that, if you have to ask, a bound filter is not for you, i.e., it only has very specialised uses.
0 Kudos
Alexey-Kukanov
Employee
206 Views
The intended usage of thread bound filters is in situations where execution of a filter depends on some context that is hard or impossible toset up in TBB worker threads (or to transfer there). But I believe our creative users will find out some other scenarios to apply thread bound filters for good :)
0 Kudos
Reply