Server Administration
  Home arrow Server Administration arrow Processes in the UNIX Shell
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Download TestComplete 
Forums Sitemap 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
SERVER ADMINISTRATION

Processes in the UNIX Shell
By: Gabor Bernat
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-11-18

    Table of Contents:
  • Processes in the UNIX Shell
  • Data about processes
  • Process Identifiers
  • Jobs

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Processes in the UNIX Shell


    (Page 1 of 4 )

    In the world of computers, as in life, you may have a countless number of tasks (or programs) you want to run at the same time. However, you have only a limited amount of time (or central processing units) to put to work on the process. So how is it that any modern operating system manages to balance its priorities with ease? Finding out the answer to this question will be the central objective for today.

    If you are a regular Codewalkers reader, you may already know that I've been covering related topics in a number of articles. In these I try to offer to you some insight into UNIX-based operating systems like Linux, FreeBSD and so on. I have already covered countless aspects of UNIX, like its terminal, file system and regular expressions. I also offered a quite detailed insight into the Born Again Shell script writing.

    In this and the next few articles I will present the way UNIX works with processes. This will be from the point of view of the shell. I will occasionally refer to things I already presented in the articles mentioned earlier. Therefore, if you are not familiar with one of these expressions, I invite you to go back and read them.

    As for today I will first explain what a process is. How is it possible to edit a Word document and listen to music with a single core processor under any modern operating system? I’ll also present a couple of basic commands inside the UNIX terminal with which you can easily see the status of these processes. Explaining what those commands show and how you can extract data from them is also on the agenda. So if you are interested, read on.

    A single core can run a single process at a particular moment. A process is the example of a program running in the operating system. Whenever an operating system is running a particular program, besides the code, a couple of other pieces of information are also stored. This requires some sort of administration; therefore, an instance of a running program means more than just its code.

    You can run multiple programs on a single CPU by giving every one of them a small amount of time to work. Then stop them and put them in the background. This is called multitasking. Do this fast enough, and the user will have the impression that all of them are running at the same time.

    More Server Administration Articles
    More By Gabor Bernat


     

    SERVER ADMINISTRATION ARTICLES

    - Understanding Awk in the UNIX Shell
    - Stream Editor in the UNIX Shell
    - Processes in the UNIX Shell
    - Migrating from Windows to Wine
    - Wine: Not Another Emulator
    - Preventive Measures to Block SSH Attacks
    - Monitoring Temperatures with Cacti
    - Cacti: RRDTool-based Graphing Solution
    - Network Magic 5.0 Review
    - Netfilter and Iptables Overview
    - Installing and Configuring Squid
    - Clickfree PC Backup Systems Compared
    - Squid, the Caching Proxy
    - Regular Expressions in the Unix Shell
    - Source Code Version Control Solutions





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 7 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek