You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
First of all, thank you for providing this very good library.
I have a project with a main thread (enki thread 0) and N enki threads.
In this project, we have some high priority background tasks we want to schedule only on the workers threads and not on the main thread. This is because those tasks are long and unsliceable.
We don't want those task to be scheduled on the main thread when we are waiting for other tasks.
Waiting for a priority is not an option either since those tasks need to be scheduled as soon as possible (on any other thread) so they have the higher priority.
PinnedTasks does not provide the api we want since it will lock this high priority task on a given thread even if it is not available.
Do you have a way to set task <-> worker thread affinity or exclusion list ?
The text was updated successfully, but these errors were encountered:
Do you have a way to set task <-> worker thread affinity or exclusion list ?
No, the only current exclusion list capability is the priority or pinned tasks.
I use the priority system for this. Define a set of priorities for the main thread (and other threads), and a set below this for only other threads.
Some form of task <> thread affinity is a reasonable ask, but it's tricky to implement (there are some edge cases) with enkiTS without a fair amount of extra functionality.
Thank you
I'll try with priorities, although it is not the best way because I would like the "non main thread" tasks to have a high priority too.
A thread affinity functionality would be very appreciate, but I understand that this can bring complexity.
Hello,
First of all, thank you for providing this very good library.
I have a project with a main thread (enki thread 0) and N enki threads.
In this project, we have some high priority background tasks we want to schedule only on the workers threads and not on the main thread. This is because those tasks are long and unsliceable.
We don't want those task to be scheduled on the main thread when we are waiting for other tasks.
Waiting for a priority is not an option either since those tasks need to be scheduled as soon as possible (on any other thread) so they have the higher priority.
PinnedTasks does not provide the api we want since it will lock this high priority task on a given thread even if it is not available.
Do you have a way to set task <-> worker thread affinity or exclusion list ?
The text was updated successfully, but these errors were encountered: