Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 106
Rep:
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?
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 106
Original Poster
Rep:
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.