synrg/asx2mp3 — Issue #1: Multiple threads containing system() calls do not join properly
Author: synrg
Created: 2011-11-18 13:24:05+00:00
State: open

The script exits immediately and all system() calls started in multiple threads continue to run in the background. The intent was to wait until they are all finished.

I was advised on #ruby-lang that I could not run more than one system() call at a time, and that I should consider using xargs -P. However, that's moving in the wrong direction, as we want threads to remain under control of the ruby script.

Perhaps by using mplayer-ruby instead (which satisfies the goal that we do as much as possible in ruby instead of heavily relying on system()) will help here.