LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Foreground vs Background (http://www.linuxquestions.org/questions/linux-general-1/foreground-vs-background-890495/)

gothrog 07-07-2011 04:56 PM

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?

Diantre 07-07-2011 10:13 PM

Maybe this can be of some help.

gothrog 07-08-2011 08:45 AM

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?

MrCode 07-08-2011 10:13 AM

Quote:

Does anyone know how to change the priority of a background process for linux centos5?
Try nice.


All times are GMT -5. The time now is 07:57 PM.