Skip to content

Can I make a process take exclusive control of the CPU? #4715

Answered by rongcuid
rongcuid asked this question in Q&A
Discussion options

You must be logged in to vote

Here's my final solution:

process exclusiveProcess {
  cpus { Runtime.runtime.availableProcessors() }
  "sleep 10"
}

process unrelatedProcess {
  "sleep 1"
}

workflow {
  exclusiveProcess | view
  unrelatedProcess | view
}

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@bentsherman
Comment options

@rongcuid
Comment options

@bentsherman
Comment options

@rongcuid
Comment options

Answer selected by rongcuid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants