Foreground vs Background
Hi All,
Can someone tell me if there is anything different with a foreground process vs a background process? I'm asking this because I can launch a Julius Speech Recognition Engine in the foreground and connect to it via a tcp/ip socket. When I do this in the background (having stdout and stderr redirected to a file) Julius seems to crash internally after it makes the actual tcp/ip connection. It actually has enough time to send an internal error msg to my connecting test stub before the crash. Don't mind the problem domain too much, I'm just trying to figure out if there is anything different that I'm not aware of with the foreground vs background processes. Also is threading handled differently between a foreground vs background processes? And last is there any suggested reading material on this topic? |
Maybe this can be of some help.
|
Diantre, that actually did help. The article states how the background process has a less priority to execute. This might be the issue I'm encountering.
Julius is failing as a thread and background, which could mean it can't handle the lower priority causing it's self to crash. Does anyone know how to change the priority of a background process for linux centos5? |
Quote:
|
All times are GMT -5. The time now is 09:28 PM. |