<?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; pid</title>
	<atom:link href="https://www.emblogic.com/blog/tag/pid/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>How to Send a signal -Using Kill command</title>
		<link>https://www.emblogic.com/blog/01/how-to-send-a-signal-using-kill-command/</link>
		<comments>https://www.emblogic.com/blog/01/how-to-send-a-signal-using-kill-command/#comments</comments>
		<pubDate>Fri, 15 Jan 2016 12:01:08 +0000</pubDate>
		<dc:creator><![CDATA[Ankur Garg]]></dc:creator>
				<category><![CDATA[Linux Internals and System Programming]]></category>
		<category><![CDATA[Project 03: Client Server Communication using Linux and IPC]]></category>
		<category><![CDATA[c programming]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[ipc]]></category>
		<category><![CDATA[kill]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux system programming]]></category>
		<category><![CDATA[pid]]></category>
		<category><![CDATA[sending signals]]></category>
		<category><![CDATA[signal]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=13175</guid>
		<description><![CDATA[Send a signal by Kill command ======================= - To send a signal to a process other than current task. - It has prototype :- int kill(pid_t pid, int signo); - It is included using header :- #include&#60;signal.h&#62; - The system &#8230; <a href="https://www.emblogic.com/blog/01/how-to-send-a-signal-using-kill-command/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Send a signal by Kill command<br />
=======================<br />
- To send a signal to a process other than current task.<br />
- It has prototype :-<br />
int kill(pid_t pid, int signo);<br />
- It is included using header :-<br />
#include&lt;signal.h&gt;<br />
- The system data type pid_t is defined in header :-<br />
#include&lt;sys/types.h&gt;<br />
- signo is the signal number of signal to be send.<br />
- pid is the PID of the process to which signal is to be send.<br />
- pid can take value:-<br />
* 0 &#8211;&gt; To send signo signal to every process in invoking process&#8217; process group<br />
* -1 &#8211;&gt;To send signo signal to every process for which invoking process has permission to send a signal, except itself and init<br />
* n(&lt;-1) &#8211;&gt; All process in process group<br />
* n(&gt;0)  &#8211;&gt; process with PID n is signalled.<br />
- This take an optional signal name or number and the PID to send the signal.</p>
<p>- For eg. To send &#8216;hangup&#8217; signal to shell running on PID 1001, we use command :-<br />
kill(1001,HUP);<br />
- killall is used to send signal to all the processes running.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/01/how-to-send-a-signal-using-kill-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
