Shell script overhead for realtime processing
Hello all,
While working on a small digital video application (with character based I/O at 4M bytes/sec). A question arises about shell overhead.
Currently, data is sourced from /dev/video0 where it is passed to stdin of the first process. Output from this first process is then piped from stdout to the next process. All of the pipe connections, and process management is done using a shell script.
The other obvious option is for the first process to directly open /dev/video0, and process the data.
Assuming that the first process is written in the same language, with the same level of competence, what (roughly) is the burden of the shell script in this first example.
I realize that this may be a difficult to answer without understanding details of the first process, but any indicators, pointers to further reading etc. will be appreciated.
Thanks, Mark
|