4 ms·
It's already there: https://docs.microsoft.com/en-us/windows/desktop/ProcThread/job-objects https://docs.microsoft.com/en-us/windows/desktop/ProcThread/... You
by zvrba 8y ago
It's already there: https://docs.microsoft.com/en-us/windows/desktop/ProcThread/job-objects https://docs.microsoft.com/en-us/windows/desktop/ProcThread/...
You can set various limits, though I haven't seen functions to stop/resume a job.
- ygra 8y agoYou can suspend and resume threads, so if you model your jobs with processes that could be used for that, I guess.
- loa-in-backup 8y ago*with threads
- ygra 8y agoProcesses. A quick skim of the documentation linked by the person I answered suggests that processes can be associated with a job object, but threads cannot. But a process cannot really be suspended directly, except by suspending all its threads.