LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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



Reply
 
Search this Thread
Old 07-07-2011, 05:56 PM   #1
gothrog
Member
 
Registered: Jun 2004
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 101

Rep: Reputation: 15
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?
 
Old 07-07-2011, 11:13 PM   #2
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware64 14.1
Posts: 402

Rep: Reputation: 153Reputation: 153
Maybe this can be of some help.
 
1 members found this post helpful.
Old 07-08-2011, 09:45 AM   #3
gothrog
Member
 
Registered: Jun 2004
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 101

Original Poster
Rep: Reputation: 15
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?
 
Old 07-08-2011, 11:13 AM   #4
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Quote:
Does anyone know how to change the priority of a background process for linux centos5?
Try nice.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tty background/foreground color neo77777 Linux - General 11 11-25-2014 09:59 AM
background process popping up in foreground noir911 Linux - General 1 12-15-2007 12:53 AM
Foreground and Background program switching isolvesystems Linux - Newbie 2 10-03-2007 10:30 AM
How to bring a background diamon to foreground lieuquocdat Linux - Software 8 07-20-2006 07:53 AM
Background and Foreground Datamike Linux - Software 2 01-20-2006 05:20 PM


All times are GMT -5. The time now is 07:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration