<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EmbLogic &#187; ppid</title>
	<atom:link href="https://www.emblogic.com/blog/tag/ppid/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>PID, PPID and NICE value of a process</title>
		<link>https://www.emblogic.com/blog/12/pid-ppid-and-nice-value-of-a-process/</link>
		<comments>https://www.emblogic.com/blog/12/pid-ppid-and-nice-value-of-a-process/#comments</comments>
		<pubDate>Thu, 31 Dec 2015 08:32:42 +0000</pubDate>
		<dc:creator><![CDATA[Ankur Garg]]></dc:creator>
				<category><![CDATA[Project 03: Client Server Communication using Linux and IPC]]></category>
		<category><![CDATA[ipc]]></category>
		<category><![CDATA[pid]]></category>
		<category><![CDATA[ppid]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=13100</guid>
		<description><![CDATA[PCB (Process Control Board) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Every Process has its Process Control Board(PCB) which tells about the process. PCB contains PID,PPID,PC(program counter),nice value of process. PID :- * PID is Process Identification of any process. * It is a number . &#8230; <a href="https://www.emblogic.com/blog/12/pid-ppid-and-nice-value-of-a-process/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>PCB (Process Control Board)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Every Process has its Process Control Board(PCB) which tells about the process.<br />
PCB contains PID,PPID,PC(program counter),nice value of process.<br />
PID :-<br />
* PID is Process Identification of any process.<br />
* It is a number .<br />
* Every Process has unique PID.<br />
* It generally lies between 2 to 32768.<br />
* 1 is reserved for init process (init starts at system boot &amp; it controls other processeses).<br />
* Obtaining PID of any process getpid() command is used-<br />
#include&lt;sys/types.h&gt;<br />
#include&lt;unistd.h&gt;<br />
pid_t getpid(void);<br />
PPID<br />
* PPID is Parent Process Identification.<br />
* It is also a number.<br />
* Every process has unique PPID.<br />
* It contains the PID of Process which creates this process(Parent Process).<br />
* For Orphan Process PPID is generally 1 (init process).<br />
* Obtaining PID of any process getppid() command is used-<br />
#include&lt;sys/types.h&gt;<br />
#include&lt;unistd.h&gt;<br />
pid_t getppid(void);</p>
<p>NICE value<br />
* OS determines Priority of a process using &#8220;nice&#8221; value.<br />
* Default nice value is 0.<br />
* Higher the &#8220;nice&#8221; value of a process, lesser will be  its priority.<br />
* &#8220;nice&#8221; value of a process (say PROCESS_xyz having PID PID_xyz)can be increased using command -<br />
nice PROCESS_xyz &amp; &#8211;&gt; Then it will allocate nice value to be +10.<br />
* We can adjust &#8220;nice&#8221; value using -<br />
renice 8 PID_xyz  &#8211;&gt; It will adjust nice valueof PROCESS_xyz to be +8</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/12/pid-ppid-and-nice-value-of-a-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
