<?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>Java and Me &#187; Process Api Updates</title>
	<atom:link href="http://rpktech.com/tag/process-api-updates/feed/" rel="self" type="application/rss+xml" />
	<link>http://rpktech.com</link>
	<description>An Interesting Journey</description>
	<lastBuildDate>Sun, 22 Nov 2015 11:01:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>JEP 102- Process API Updates</title>
		<link>http://rpktech.com/2015/02/14/jep-102-process-api-updates/</link>
		<comments>http://rpktech.com/2015/02/14/jep-102-process-api-updates/#comments</comments>
		<pubDate>Sat, 14 Feb 2015 07:04:04 +0000</pubDate>
		<dc:creator><![CDATA[Rahul Kulshreshtha]]></dc:creator>
				<category><![CDATA[Java 9 Features]]></category>
		<category><![CDATA[Java 9]]></category>
		<category><![CDATA[JEP 102]]></category>
		<category><![CDATA[Process Api Updates]]></category>

		<guid isPermaLink="false">http://rpktech.com/?p=72</guid>
		<description><![CDATA[Process API Updates Java 9 has come with the changes which will let you fetch the pid of a process. Following code shows how to get a pid with Java 9 getPid function internally call getProcessId0 with process&#8217;s handle to]]></description>
				<content:encoded><![CDATA[<p><span style="text-decoration: underline;"><strong>Process API Updates</strong></span></p>
<p>Java 9 has come with the changes which will let you fetch the pid of a process. Following code shows how to get a pid with Java 9</p>
<pre class="brush: java; title: ; notranslate">
ProcessBuilder pb = new ProcessBuilder(&quot;notepad&quot;);
		        Process p = pb.start();

		 System.out.println(&quot;Pid of Process : &quot; + p.getPid());
</pre>
<p>getPid function internally call <strong>getProcessId0</strong> with process&#8217;s handle to retrieve pid. <strong>getProcessId0</strong> is a native method.</p>
<p>Apart from process id, other targeted changes are :</p>
<ul>
<li>Ability to get/set the process name</li>
<li>Ability to enumerate Java virtual machines and processes to get pid, name, state, and perhaps resource usage</li>
<li>Api to do &#8220;End Process Tree&#8221;. <a href="http://rpktech.com/wp-content/uploads/2015/02/EndProcessTree.png"><img class="aligncenter size-full wp-image-73" src="http://rpktech.com/wp-content/uploads/2015/02/EndProcessTree.png" alt="EndProcessTree" width="362" height="285" /></a></li>
</ul>
<p>Thanks Robin for the update, JDK 9 docs are now available here <a href="http://download.java.net/jdk9/docs/api/java/lang/ProcessBuilder.html" rel="nofollow">http://download.java.net/jdk9/docs/api/java/lang/ProcessBuilder.html</a></p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Frpktech.com%2F2015%2F02%2F14%2Fjep-102-process-api-updates%2F&amp;linkname=JEP%20102-%20Process%20API%20Updates" title="Facebook" rel="nofollow" target="_blank"></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Frpktech.com%2F2015%2F02%2F14%2Fjep-102-process-api-updates%2F&amp;linkname=JEP%20102-%20Process%20API%20Updates" title="Twitter" rel="nofollow" target="_blank"></a><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2Frpktech.com%2F2015%2F02%2F14%2Fjep-102-process-api-updates%2F&amp;linkname=JEP%20102-%20Process%20API%20Updates" title="Google+" rel="nofollow" target="_blank"></a><a class="a2a_dd a2a_target addtoany_share_save" href="https://www.addtoany.com/share#url=http%3A%2F%2Frpktech.com%2F2015%2F02%2F14%2Fjep-102-process-api-updates%2F&amp;title=JEP%20102-%20Process%20API%20Updates" id="wpa2a_2"></a></p>]]></content:encoded>
			<wfw:commentRss>http://rpktech.com/2015/02/14/jep-102-process-api-updates/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
