Y
Hacker News
new
|
ask
|
show
|
jobs
by
cryptonector
2868 days ago
Yes, of course signals are easily the worst thing in Unix, but
job control
is
nice
.
1 comments
zvrba
2868 days ago
It's already there:
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.
link
ygra
2867 days ago
You can suspend and resume threads, so if you model your jobs with processes that could be used for that, I guess.
link
loa-in-backup
2867 days ago
*with threads
link
ygra
2867 days ago
Processes. 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.
link
You can set various limits, though I haven't seen functions to stop/resume a job.