Steve_BZ has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I've just discovered threads and ->join(): you can imagine my joy. However, I'm using it to trigger ffmpeg snapshots from a streaming video. This can become quite CPU intensive when you press the 'snap' button too many times in succession (my CPU has been running at 100% for the past five minutes). So really what I'd like to find is a discussion somewhere about design choices using threads, ->join() and others. Can I set the priority of the threads? Can I monitor the number of processes and stop more than a certain number being triggered? What else can I do? Is threads the best option? etc
Regards
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: threads, ->Join() and others
by jdrago_999 (Hermit) on Sep 17, 2009 at 23:31 UTC |