Scheduling Blocking Tasks in Task Scheduler

14 views
Skip to first unread message

François Doray

unread,
Dec 19, 2016, 12:38:05 PM12/19/16
to task-sche...@chromium.org, ma...@chromium.org, tha...@chromium.org, dan...@chromium.org, the...@chromium.org, dch...@chromium.org, chr...@chromium.org, bre...@chromium.org
base/ OWNERS and other interested parties: We wrote a doc that describes immediate and future improvements that we plan to make to the way Task Scheduler handles blocking (e.g. I/O, etc.) tasks. PTAL https://docs.google.com/a/chromium.org/document/d/1ynRvQKah3Cx_eLqPS7KzIp8u73HeKIjX7HQqwSWOnF8/edit?usp=sharing

tl;dr
  • We will replace .WithFileIO() and .WithWait() with a single .MayBlock() trait.
  • [future] We will introduce ScopedMayBlock to notify Task Scheduler when a task is about to block.
  • [future] We will take advantage of OS-specific APIs to dynamically adjust the number of threads on which tasks are scheduled based on the number of blocked tasks.

Gabriel Charette

unread,
Dec 19, 2016, 12:52:55 PM12/19/16
to François Doray, ma...@chromium.org, tha...@chromium.org, dan...@chromium.org, the...@chromium.org, dch...@chromium.org, chr...@chromium.org, bre...@chromium.org, scheduler-dev
s/task-scheduler-dev/scheduler-dev/ as discussed here.

--
You received this message because you are subscribed to the Google Groups "task-scheduler-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to task-scheduler-...@chromium.org.
To post to this group, send email to task-sche...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/task-scheduler-dev/CAGD3t5ERBAN9KVs6Eh2z%2Bbcp%2B4ZbCi100Oz4QLCVr3o4VT6UJQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages