SERVER-139250Needs Scheduling

Add ThreadPool pause/resume and start workers for queued tasks

h3. Current behavior * If every task is already queued, raising {{maxThreads}} does not start another worker.  * There is no way to stop the pool from running tasks already in its queue. {{join()}} runs whatever is left ({{{}_drainPendingTasks{}}}). h3. Requested behavior * A pause method that stops workers from pulling tasks from the pending queue. A task already running finishes, and tasks submitted while paused stay queued. A resume method that continues them in FIFO order. Lowering

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.