-
Hi I have clip.wrap running a large number of ffmpeg encode processes (50-100) every 5 mins at the moment they all start at once and run the cpu at 100% , i would like to set a limit on the number of commands executing at the same time. MaxDegreeOfParallelism in Parallel.Foreach has no effect. is this possible with SemaphoreSlim or something else |
Beta Was this translation helpful? Give feedback.
Answered by
Tyrrrz
Jul 11, 2024
Replies: 1 comment 1 reply
-
Yes, use a semaphore slim, blocking before |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MikeAtTRP
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, use a semaphore slim, blocking before
ExecuteAsync()
.