Thread: foreground vs background concept

  1. #1
    Registered User
    Join Date
    Apr 2015
    Posts
    180

    foreground vs background concept

    As an exercise i'am implemmenting a simple shell and now i'am trying to implemment foregorund and background.
    All i know about this at the moment is that if there an & after a command it runs on background.
    Is the idea just to make the parent process wait for child completion if we're in foreground mode? What if the process is to be run in background mode? Do i have to force the parent to run first?

  2. #2
    Registered User
    Join Date
    Aug 2010
    Location
    Poland
    Posts
    733
    What platform? You have to provide more information and be more specific about what you really want to achieve... (saying that a shell with foreground and background processes is not enough)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How do I kill every foreground process execpt my most recent one?
    By Overworked_PhD in forum Linux Programming
    Replies: 1
    Last Post: 10-21-2009, 09:23 AM
  2. XP: Explorer stays in the foreground
    By Mario F. in forum Tech Board
    Replies: 3
    Last Post: 07-02-2009, 04:46 AM
  3. Replies: 3
    Last Post: 06-09-2009, 08:16 PM
  4. Replies: 34
    Last Post: 05-27-2009, 12:26 PM
  5. Concept
    By kusal in forum C Programming
    Replies: 12
    Last Post: 01-06-2007, 10:32 PM