Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > The Linux Kernel > use of process table

Forgot Password?
 The Linux Kernel   Compiling, theory, programming or other discussion about the linux kernel

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 08-22-2005   #1 (permalink)
Just Joined!
 
Join Date: Aug 2005
Posts: 4
use of process table

may i know what is the use of process table in linux?
anamika is offline  


Reply With Quote
Old 08-22-2005   #2 (permalink)
Just Joined!
 
Join Date: Jan 2005
Location: Bangalore India
Posts: 28
Send a message via Yahoo to linuxgeek79
Re: use of process table

Hi Anamika,

Check out this :

The second major component of the kernel is the process management system. A 'process' is a single sequence of events utilizing memory and files. A process is 'created' by 'forking' a copy of the process being made. The two processes are only distinguished by the parent being able to wait for the child process to finish. A process may replace itself by another program to be executed.

GNU/Linux is a multitasking operating system. That is many processes can be running at one time. Control is maintained in a 'preemtive' or 'timesliced' fashion. After a certain amount of time (in milliseconds) the operating system passes operation over from process 'a' to process 'b'. This also lets it maintain control and break out of rogue processes. Some other systems use a 'cooperative' system where eachprocess relinquishes control when it wants to (but what happens when it doesn't want to).

An 'image' is a computer execution environment which includes the program, associated data, status of open files (ie. file descriptor table and system file table), and the default directory. Some image attributes such as the user-id are accessible directly but other attributes such as the list of child processes can only be accessed through system calls.

A 'process' is the execution of an image. During execution it has four parts to its execution space: program code segment(read only and sharable), program data segment (writable, non-sharable), runtime stack segment, and system segment (system data localized to process).

A 'system call' is a standardized access method or 'hook' from user scripts or programs. The process management system uses four main system calls:

fork creates two copies (parent and child) of an image.
wait allows a parent to pause until the child process completes.
exec allows overlaying of the calling program with a new one.
exit is a voluntary completion of the process.
Processes intercommunicate with each other using 'signals'.

A 'process table' maintains records for each process on the system. These processes are in a treed structure of ownership. The shell command ps -e -f (every process, full listing) reveals all the table data to the user. PID stands for process id and PPID is the parents process id.

Processes are normally but not necessarily associated with a terminal device. This is done automatically on creation.

'Daemons' are processes that are NOT associated with a terminal. An example is the print spooler. These are identified in the process table as ? in the tty column.

Processes may be run in the 'background' (often by using an ampersand (&) at the end of the shell script that initiates the process). Programs running in the 'background' do not cause the system to 'wait' for their completion. Mechanisms for identifying (returning the PID number) checking status ( the PS command) and terminating (the KILL command) are provided to maintain control of 'background' processes.





Quote:
Originally Posted by anamika
may i know what is the use of process table in linux?



Ashish.
linuxgeek79 is offline   Reply With Quote
Old 08-22-2005   #3 (permalink)
Just Joined!
 
Join Date: Aug 2005
Posts: 4
your answer is very helpful.thank u
anamika is offline   Reply With Quote
Old 08-23-2005   #4 (permalink)
Just Joined!
 
Join Date: Jan 2005
Location: Bangalore India
Posts: 28
Send a message via Yahoo to linuxgeek79
Your always welcome.
Quote:
Originally Posted by anamika
your answer is very helpful.thank u
linuxgeek79 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 12:20 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2