<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-676716750605631906</id><updated>2012-01-23T02:26:57.645-08:00</updated><title type='text'>Srikalyan Chandrashekar</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kalyansri.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/676716750605631906/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://kalyansri.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sri kalyan</name><uri>http://www.blogger.com/profile/10400271422501856813</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://2.bp.blogspot.com/_A-pnsqAZFjc/SyLsZqQrtFI/AAAAAAAADgw/HPNwywdIXGs/S220/kal.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-676716750605631906.post-2970524600947820833</id><published>2009-06-22T16:25:00.000-07:00</published><updated>2009-06-22T16:34:29.374-07:00</updated><title type='text'>Create your own Thread Pool in Java</title><content type='html'>&lt;div id="wikiheader" style="margin-bottom: 1em;"&gt;    &lt;span style="font-size: 120%; font-weight: bold;"&gt;ThreadPool&lt;/span&gt;         &lt;/div&gt;  &lt;p&gt;Thread pool implementation in java. &lt;/p&gt;&lt;h1&gt;&lt;a name="Introduction"&gt;Introduction&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;&lt;a name="Introduction"&gt;This is a very simple Thread pool that makes sure specified number of threads are running at any instance of time.You can use this as part of say Data base connection object pooling or to avoid thread fork bomb. &lt;/a&gt;&lt;/p&gt;&lt;h1&gt;&lt;a name="Details"&gt;Details&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;&lt;a name="Details"&gt;Go code.google.com and search for threadpoolingjava project Navigate to downloads page. Download and unzip the archive which includes java source file and GNU V3 licence document. Use the source as part of your project . Has no dependencies on 3rd party libraries other than standard java libraries. The source is well commented which guides you with the method call sequences.&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a name="Details"&gt;&lt;span style="font-weight: bold;"&gt;NOTE:&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a name="Details"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Please make sure you got a copy of GNU GPL licence V3 along with the source code.&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;import java.util.*;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class ThreadPool implements Runnable {&lt;br /&gt;  public static int POOL_SIZE = 2;// Default pool size&lt;br /&gt;  public static int POOL_STATUS_CHECK_TIME = 1000;//In milli seconds&lt;br /&gt;  private List&lt;Runnable&gt; threadsInPool;&lt;br /&gt;  private Thread self;&lt;br /&gt;  &lt;br /&gt;  public ThreadPool() {&lt;br /&gt;     .... &lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public ThreadPool(int size) {&lt;br /&gt;        ....&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public void addThreadToPool(Runnable th) {&lt;br /&gt;      .......&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public void kickStart() {&lt;br /&gt;       .....&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public void run() {&lt;br /&gt;      .........&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;  public boolean isPoolAlive() {&lt;br /&gt;       ........&lt;br /&gt;  }&lt;br /&gt;  &lt;br /&gt;  private void pausePool() {&lt;br /&gt;        ........&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/676716750605631906-2970524600947820833?l=kalyansri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kalyansri.blogspot.com/feeds/2970524600947820833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=676716750605631906&amp;postID=2970524600947820833' title='217 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/676716750605631906/posts/default/2970524600947820833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/676716750605631906/posts/default/2970524600947820833'/><link rel='alternate' type='text/html' href='http://kalyansri.blogspot.com/2009/06/create-your-own-thread-pool-in-java.html' title='Create your own Thread Pool in Java'/><author><name>Sri kalyan</name><uri>http://www.blogger.com/profile/10400271422501856813</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://2.bp.blogspot.com/_A-pnsqAZFjc/SyLsZqQrtFI/AAAAAAAADgw/HPNwywdIXGs/S220/kal.jpg'/></author><thr:total>217</thr:total></entry><entry><id>tag:blogger.com,1999:blog-676716750605631906.post-7627306674502955101</id><published>2007-05-29T23:50:00.000-07:00</published><updated>2009-07-13T18:22:11.476-07:00</updated><title type='text'>About Me</title><content type='html'>This is my first post in any blog ever. I am an electronics engineer turned ...... .     "Software Engineer". I hold bachelors degree from Sreenidhi institute of science and technology and Masters from University of Southern California Los Angeles. Currently working @ Sun Microsystems Santa Clara as Member of Technical staff. I like sketching potraits (strangely i use pen rather than pencil for sketching, so the shading usually doesn't turn out as good as they are supposed to be).  I  youtube a lot !! mainly for listening to Ilayaraja's songs, BGM's , MS Subbulakshmi amma's carnatic songs. I have inquisitive attitude, seek to be spiritual, on religious front I started to scratch the surface of Vedanta(the philosophical conclusions of Vedas). One of the verses form Baghavad Gita and its synopsis I seek to live with is&lt;br /&gt;&lt;p&gt;&lt;i&gt;bhumir apo nalo vayuh kham mano buddhir eva ca, ahankara itiyam me bhinna prakrtir astadha &lt;/i&gt;&lt;/p&gt;  &lt;p&gt;"Earth, water, fire, air, ether, mind, intelligence, and material ego, these eight elements constitute my separated material energy." These material elements, five gross and three subtle, cover our soul. Corresponding with the gross material elements are the senses and sense organs: earth-smelling (nose); water-tasting (tongue); fire-seeing (eyes); air-touching (skin); and ether-hearing (ears). These five senses make up our physical dimension, while mind, intelligence, and material ego make up our psychic dimension. Under all of this we reside, like a diamond in the rough. Although our consciousness is covered by a mountain of material misconception causing us to identify ourselves with our body and mind, its potential to shine remains undiminished.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/676716750605631906-7627306674502955101?l=kalyansri.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kalyansri.blogspot.com/feeds/7627306674502955101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=676716750605631906&amp;postID=7627306674502955101' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/676716750605631906/posts/default/7627306674502955101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/676716750605631906/posts/default/7627306674502955101'/><link rel='alternate' type='text/html' href='http://kalyansri.blogspot.com/2007/05/sri-kalyans.html' title='About Me'/><author><name>Sri kalyan</name><uri>http://www.blogger.com/profile/10400271422501856813</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://2.bp.blogspot.com/_A-pnsqAZFjc/SyLsZqQrtFI/AAAAAAAADgw/HPNwywdIXGs/S220/kal.jpg'/></author><thr:total>1</thr:total></entry></feed>
