<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4851999754350716333</atom:id><lastBuildDate>Fri, 01 Nov 2024 08:20:08 +0000</lastBuildDate><category>ipc</category><category>Google Nexus One</category><category>introduction</category><category>prg_1</category><category>prg_2</category><category>sockets</category><category>thread</category><category>unix_process</category><title>Nidhish ABRAHAM's -  "Tech Talk"</title><description>&lt;a href="http://www.linkedin.com/in/nidhishabraham"&gt;&lt;img src="http://www.linkedin.com/img/webpromo/btn_myprofile_160x33.gif" width="160" height="33" border="0" alt="View Nidhish Abraham&amp;#39;s profile on LinkedIn"&gt;&lt;/a&gt;</description><link>http://abrahamnidhish.blogspot.com/</link><managingEditor>noreply@blogger.com (Nidhish ABRAHAM)</managingEditor><generator>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:summary/><itunes:subtitle/><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-1678209306869428384</guid><pubDate>Mon, 21 Mar 2011 11:55:00 +0000</pubDate><atom:updated>2011-03-21T07:11:46.792-07:00</atom:updated><title>Android - Skeleton</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDeF4MXOU0h0toWJbcULpJjf0wkRYiZ1pFTOsVA6F5_qBMwt2y7BeTNhfBT7EtX5-cRLg6YH9MmyPJOs4EkL2PEjQ2-YvuNS53_J9x9_Rsh4jY3yuv0iptuYFd0lJ7vwMblBdP084_9e0/s1600/74px-Android_robot.svg.png"&gt;&lt;img style="cursor: pointer; width: 74px; height: 88px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDeF4MXOU0h0toWJbcULpJjf0wkRYiZ1pFTOsVA6F5_qBMwt2y7BeTNhfBT7EtX5-cRLg6YH9MmyPJOs4EkL2PEjQ2-YvuNS53_J9x9_Rsh4jY3yuv0iptuYFd0lJ7vwMblBdP084_9e0/s320/74px-Android_robot.svg.png" alt="" id="BLOGGER_PHOTO_ID_5586502076268834130" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;Some parts of Android is familiar to all of us, such as the &lt;span style="font-weight: bold;"&gt;Linux Kernel,  OpenGL, &lt;/span&gt;and&lt;span style="font-weight: bold;"&gt; the SQL database&lt;/span&gt;. Others may be completely foreign, such as  Android’s idea of the application life cycle.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgddAmmHaQ2KywRb9g1jbirvahHmNaV_I4G325kAowY4bQPaTOT298zVLx4jUhgcaETvVr-eDY3ClwrkoTs8JahQoNe-flX3JL6vgqxOjm6kTCOpsdB7RNbEp9ZBGXvB0sW3GBMY8cYE7I/s1600/android-architecture-485b.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 230px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgddAmmHaQ2KywRb9g1jbirvahHmNaV_I4G325kAowY4bQPaTOT298zVLx4jUhgcaETvVr-eDY3ClwrkoTs8JahQoNe-flX3JL6vgqxOjm6kTCOpsdB7RNbEp9ZBGXvB0sW3GBMY8cYE7I/s320/android-architecture-485b.jpg" alt="" id="BLOGGER_PHOTO_ID_5586501150722501762" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Starting at the bottom is the &lt;span style="font-weight: bold;"&gt;Linux Kernel&lt;/span&gt;. Android uses &lt;span style="font-weight: bold;"&gt;Linux &lt;/span&gt;for  its device drivers, memory management, process management, and  networking. However you will never be programming to this layer  directly.&lt;/p&gt; &lt;p&gt;The next level up contains the &lt;span style="font-weight: bold;"&gt;Android native libraries&lt;/span&gt;. They are all  written in &lt;span style="font-weight: bold;"&gt;C/C++ internally&lt;/span&gt;, but you’ll be calling them through Java  interfaces. In this layer you can find the Surface Manager (for  compositing windows), 2D and 3D graphics, Media codecs (MPEG-4, H.264,  MP3, etc.), the SQL database (SQLite), and a native web browser engine  (WebKit).&lt;/p&gt; &lt;p&gt;Next is the Android runtime, including the &lt;a href="http://en.wikipedia.org/wiki/Dalvik_%28software%29"&gt;&lt;span style="font-weight: bold;"&gt;Dalvik Virtual Machine&lt;/span&gt;&lt;/a&gt;. Dalvik runs &lt;span style="font-weight: bold;" class="fileextension"&gt;dex&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;files, which are converted at compile time from standard &lt;span class="fileextension"&gt;class&lt;/span&gt; and &lt;span class="fileextension"&gt;jar&lt;/span&gt;  files. Dex files are more compact and efficient than class files, an  important consideration for the limited memory and battery powered  devices that Android targets.&lt;/p&gt; &lt;p&gt;The core Java libraries are also part of the Android runtime. They  are written in Java, as is everything above this layer. Here, Android  provides a substantial subset of the Java 5 Standard Edition packages, including Collections, I/O, and so forth.&lt;/p&gt; &lt;p&gt;The next level up is the Application Framework layer. Parts of this  toolkit are provided by Google, and parts are extensions or services  that you write. The most important component of the framework is the  &lt;span style="font-weight: bold;"&gt;Activity Manager&lt;/span&gt;, which manages the life cycle of applications and a  common “back-stack” for user navigation.&lt;/p&gt; &lt;p&gt;Finally, the top layer is the &lt;span style="font-weight: bold;"&gt;Applications layer&lt;/span&gt;. Most of your code  will live here, along side built-in applications such as the Phone and  Web Browser.&lt;/p&gt; &lt;p&gt;One of the unique and powerful qualities of Android is that all  applications have a level playing field. What I mean is that the  applications Google writes have to go through the same public API that  you use. You can even tell Android to make your application replace the  standard applications if you like.&lt;br /&gt;&lt;/p&gt;&lt;span style="font-weight: bold;"&gt;Libraries&lt;/span&gt;  &lt;p&gt;Android includes a set of &lt;span style="font-weight: bold;"&gt;C/C++ libraries &lt;/span&gt;used by various components of the Android system. These capabilities are exposed to developers through the Android application framework. Some of the core libraries are listed below:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;strong&gt;System C library&lt;/strong&gt; - a BSD-derived implementation of     the standard C system library (libc), tuned for embedded Linux-based     devices&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Media Libraries&lt;/strong&gt; - based on PacketVideo's OpenCORE;     the libraries support playback and recording of many popular audio and video     formats, as well as static image files, including MPEG4, H.264, MP3, AAC,     AMR, JPG, and PNG&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Surface Manager&lt;/strong&gt; - manages access to the display     subsystem and seamlessly composites 2D and 3D graphic layers from multiple     applications&lt;/li&gt;&lt;li&gt;&lt;strong&gt;LibWebCore&lt;/strong&gt; - a modern web browser engine which     powers both the Android browser and an embeddable web view&lt;/li&gt;&lt;li&gt;&lt;strong&gt;SGL&lt;/strong&gt; - the underlying 2D graphics     engine&lt;/li&gt;&lt;li&gt;&lt;strong&gt;3D libraries&lt;/strong&gt; - an implementation based on     OpenGL ES 1.0 APIs; the libraries use either hardware 3D acceleration     (where available) or the included, highly optimized 3D software     rasterizer&lt;/li&gt;&lt;li&gt;&lt;strong&gt;FreeType&lt;/strong&gt; - bitmap and vector font rendering&lt;/li&gt;&lt;li&gt;&lt;strong&gt;SQLite&lt;/strong&gt; - a powerful and lightweight relational     database engine available to all applications&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;HR&gt;&lt;br /&gt;&lt;iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/Mm6Ju0xhUW8" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2011/03/android-skeleton.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDeF4MXOU0h0toWJbcULpJjf0wkRYiZ1pFTOsVA6F5_qBMwt2y7BeTNhfBT7EtX5-cRLg6YH9MmyPJOs4EkL2PEjQ2-YvuNS53_J9x9_Rsh4jY3yuv0iptuYFd0lJ7vwMblBdP084_9e0/s72-c/74px-Android_robot.svg.png" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-1851152323444230279</guid><pubDate>Sun, 05 Sep 2010 06:57:00 +0000</pubDate><atom:updated>2010-09-05T00:00:39.133-07:00</atom:updated><title>What is Cloud Computing?</title><description>&lt;span style="font-weight: bold;font-family:verdana;font-size:100%;"  &gt;Cloud computing&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt; is Internet-based computing, whereby shared resources, software, and information are provided to computers and other devices on demand, like the electricity grid.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHD3DTD2GqQ7SxPgvF3BA-8nYeDmzQrZmS2qYgl5HRIWsIIl9aJX1Ikdnul2aLSwwZ6ScAjjqKirLAqMRbKys4R7G_VE9a6E7frZ2T4e2rxq2qpirgcScJArVW8zmkIkNxBInf5bPtjTI/s1600/300px-Cloud_computing.svg.png"&gt;&lt;img style="cursor: pointer; width: 300px; height: 208px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHD3DTD2GqQ7SxPgvF3BA-8nYeDmzQrZmS2qYgl5HRIWsIIl9aJX1Ikdnul2aLSwwZ6ScAjjqKirLAqMRbKys4R7G_VE9a6E7frZ2T4e2rxq2qpirgcScJArVW8zmkIkNxBInf5bPtjTI/s320/300px-Cloud_computing.svg.png" alt="" id="BLOGGER_PHOTO_ID_5513320304037802418" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="320" height="190"&gt;&lt;param name="movie" value="http://www.youtube.com/v/6PNuQHUiV3Q?fs=1&amp;amp;hl=en_US"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/6PNuQHUiV3Q?fs=1&amp;amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="320" height="190"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2010/09/what-is-cloud-computing.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHD3DTD2GqQ7SxPgvF3BA-8nYeDmzQrZmS2qYgl5HRIWsIIl9aJX1Ikdnul2aLSwwZ6ScAjjqKirLAqMRbKys4R7G_VE9a6E7frZ2T4e2rxq2qpirgcScJArVW8zmkIkNxBInf5bPtjTI/s72-c/300px-Cloud_computing.svg.png" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-1947701861439504944</guid><pubDate>Thu, 26 Aug 2010 07:00:00 +0000</pubDate><atom:updated>2010-08-26T00:04:05.653-07:00</atom:updated><title/><description>&lt;span style="font-size:100%;"&gt;&lt;a href="http://googlevoiceblog.blogspot.com/2010/08/make-and-receive-calls-in-gmail.html"&gt;Make and receive calls in Gmail&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_IS-eGI8ji0U/THRtxGC2AwI/AAAAAAAAAzU/La9FVj6r8dM/s800/screenshot2.jpg"&gt;&lt;img style="cursor: pointer; width: 521px; height: 286px;" src="http://1.bp.blogspot.com/_IS-eGI8ji0U/THRtxGC2AwI/AAAAAAAAAzU/La9FVj6r8dM/s800/screenshot2.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p style="font-family: verdana;" class="post-subhead"&gt; &lt;/p&gt;  &lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;Google Voice lets you manage all your phone communications and  seamlessly make and receive calls on any of your existing phones. But  what if you don’t have your phone with you? Or what if you’re in a place  with poor cell phone reception, or you’re traveling internationally  and don’t want to incur expensive roaming charges? Wouldn’t it be great  if you could use your computer to make or receive calls?&lt;/span&gt;  &lt;span style="font-family:verdana;"&gt;Starting today you can use Gmail to receive or place Google Voice calls.&lt;/span&gt;  &lt;span style="font-family:verdana;"&gt;To  get started, check the box next to Google Chat in your list of  forwarding phones and the next time someone calls your Google Voice  number, Gmail will notify you of an incoming call.  You can take the  call or even listen in as the caller leaves a message, in a single step  right from your computer.&lt;br /&gt;&lt;br /&gt;&lt;object width="320" height="190"&gt;&lt;param name="movie" value="http://www.youtube.com/v/_-DzpAg0SdU?fs=1&amp;amp;hl=en_US"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/_-DzpAg0SdU?fs=1&amp;amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="320" height="190"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2010/08/make-and-receive-calls-in-gmail-google.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://1.bp.blogspot.com/_IS-eGI8ji0U/THRtxGC2AwI/AAAAAAAAAzU/La9FVj6r8dM/s72-c/screenshot2.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-6090708937446986691</guid><pubDate>Thu, 28 Jan 2010 21:12:00 +0000</pubDate><atom:updated>2010-01-28T13:54:42.889-08:00</atom:updated><title>iPad</title><description>&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;font-family:verdana;" &gt;Apple iPad&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;The &lt;span style="font-weight: bold;"&gt;iPad&lt;/span&gt; is a tablet computer developed by Apple Inc. It features multi-touch interaction with print, video, photo, and audio multimedia, internet browsing, and runs most iPhone OS apps. The device has an LED-backlit 9.7-inch (25 cm) color LCD display and uses a virtual keyboard for text input. Prices for models in the United States range from $499 to $829 depending on the amount of storage and inclusion of 3G access.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvScgpZdnVvJlPFFDrWlpHsQTjoBt3yOIuryvdOeAAP1Fn7f_s1xW7N6i3_6fiU-JA-YsRlkAy0tNqd6a1ICLczjG6MOq6_Sf7MakzJkuRLfvk1AOJ_grHZO-y6cZPxpaOzl94qxvGQWY/s1600-h/accessories_20100127.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 313px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvScgpZdnVvJlPFFDrWlpHsQTjoBt3yOIuryvdOeAAP1Fn7f_s1xW7N6i3_6fiU-JA-YsRlkAy0tNqd6a1ICLczjG6MOq6_Sf7MakzJkuRLfvk1AOJ_grHZO-y6cZPxpaOzl94qxvGQWY/s320/accessories_20100127.jpg" alt="" id="BLOGGER_PHOTO_ID_5431912403300071202" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;table  class="wikitable" border="1" style="font-family:verdana;"&gt;&lt;caption&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;Hardware specifications of Apple iPad&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/caption&gt; &lt;tbody&gt;&lt;tr&gt; &lt;th style="background: rgb(170, 170, 170) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: rgb(51, 0, 51);"&gt;&lt;span style="font-size:85%;"&gt;Model&lt;/span&gt;&lt;/th&gt; &lt;th style="background: rgb(170, 170, 170) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"&gt;&lt;span style="font-size:85%;"&gt;Early 2010&lt;sup id="cite_ref-Apple_1-5" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/IPad#cite_note-Apple-1"&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;&lt;span style="font-size:85%;"&gt;Announce date&lt;/span&gt;&lt;/th&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;January 27, 2010&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Display_device" title="Display device"&gt;Color display&lt;/a&gt;&lt;/span&gt;&lt;/th&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;9.7 inches (25 cm) &lt;a href="http://en.wikipedia.org/wiki/LED" title="LED" class="mw-redirect"&gt;LED&lt;/a&gt; backlit &lt;a href="http://en.wikipedia.org/wiki/TFT_LCD#In-plane_switching_.28IPS.29" title="TFT LCD"&gt;in-plane switching&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Liquid_crystal_display" title="Liquid crystal display"&gt;LCD&lt;/a&gt;, made by Innolux, a subsidiary of &lt;a href="http://en.wikipedia.org/wiki/Foxconn" title="Foxconn"&gt;Foxconn&lt;/a&gt;&lt;sup id="cite_ref-Apple_1-6" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/IPad#cite_note-Apple-1"&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id="cite_ref-14" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/IPad#cite_note-14"&gt;&lt;span&gt;[&lt;/span&gt;15&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id="cite_ref-15" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/IPad#cite_note-15"&gt;&lt;span&gt;[&lt;/span&gt;16&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Central_processing_unit" title="Central processing unit"&gt;Processor&lt;/a&gt;&lt;/span&gt;&lt;/th&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;1 GHz &lt;a href="http://en.wikipedia.org/wiki/Apple_A4" title="Apple A4"&gt;Apple A4&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/System-on-a-chip" title="System-on-a-chip"&gt;system-on-a-chip&lt;/a&gt;&lt;sup id="cite_ref-Apple_1-7" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/IPad#cite_note-Apple-1"&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id="cite_ref-A4_2-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/IPad#cite_note-A4-2"&gt;&lt;span&gt;[&lt;/span&gt;3&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Computer_graphics" title="Computer graphics"&gt;Graphics&lt;/a&gt;&lt;/span&gt;&lt;/th&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;1024×768 pixel (&lt;a href="http://en.wikipedia.org/wiki/XGA" title="XGA"&gt;XGA&lt;/a&gt; resolution), 20cm × 15cm, 132ppi&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Data_storage_device" title="Data storage device"&gt;Storage&lt;/a&gt;&lt;/span&gt;&lt;/th&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;16, 32 or 64 GB &lt;a href="http://en.wikipedia.org/wiki/Flash_memory" title="Flash memory"&gt;flash memory&lt;/a&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Wi-Fi" title="Wi-Fi"&gt;Wireless&lt;/a&gt;&lt;/span&gt;&lt;/th&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;Integrated &lt;a href="http://en.wikipedia.org/wiki/IEEE_802.11n-2009" title="IEEE 802.11n-2009"&gt;802.11a/b/g/n&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Bluetooth#Bluetooth_2.1_.2B_EDR" title="Bluetooth"&gt;Bluetooth 2.1 + EDR&lt;/a&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://en.wikipedia.org/wiki/3G" title="3G"&gt;3G Internet&lt;/a&gt;&lt;/span&gt;&lt;/th&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;7.2 Mbps &lt;a href="http://en.wikipedia.org/wiki/HSDPA" title="HSDPA" class="mw-redirect"&gt;HSDPA&lt;/a&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Operating_system" title="Operating system"&gt;Operating system&lt;/a&gt;&lt;/span&gt;&lt;/th&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://en.wikipedia.org/wiki/IPhone_OS" title="IPhone OS"&gt;iPhone OS&lt;/a&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;&lt;span style="font-size:85%;"&gt;Battery&lt;/span&gt;&lt;/th&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;Built-in &lt;a href="http://en.wikipedia.org/wiki/Lithium-polymer" title="Lithium-polymer" class="mw-redirect"&gt;lithium-polymer&lt;/a&gt; 25 W·h (10 h usage, 1 month standby)&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;&lt;span style="font-size:85%;"&gt;Weight&lt;/span&gt;&lt;/th&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;1.5 pounds (680 g), 1.6 pounds (730 g) (3G Model)&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;&lt;span style="font-size:85%;"&gt;Dimensions&lt;/span&gt;&lt;/th&gt; &lt;td&gt;&lt;span style="font-size:85%;"&gt;9.56 inches (24.3 cm) x 7.47 inches (19.0 cm) x 0.5 inches (1.3 cm)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2010/01/ipad.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvScgpZdnVvJlPFFDrWlpHsQTjoBt3yOIuryvdOeAAP1Fn7f_s1xW7N6i3_6fiU-JA-YsRlkAy0tNqd6a1ICLczjG6MOq6_Sf7MakzJkuRLfvk1AOJ_grHZO-y6cZPxpaOzl94qxvGQWY/s72-c/accessories_20100127.jpg" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-3921339014444843092</guid><pubDate>Fri, 08 Jan 2010 23:56:00 +0000</pubDate><atom:updated>2010-01-10T09:19:46.395-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Google Nexus One</category><title>Google Nexus One</title><description>&lt;object style="font-family: verdana;font-family:verdana;"  width="100%"&gt;&lt;span style="font-weight: bold;"&gt;Google Maps Navigation&lt;/span&gt; is an internet-connected GPS navigation system with voice guidance. It is part of Google Maps for mobile and is available for phones with Android 1.6 and higher.&lt;br /&gt;&lt;br /&gt;Google Maps Navigation uses your phone's internet connection to give you the latest maps and business data. But that's not all that's different about Google's approach to GPS navigation. Watch the below video to learn more. &lt;embed src="http://www.android.com/swf/conveyor.swf" type="application/x-shockwave-flash" width="100%" height="90"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;object width="560" height="340"&gt;&lt;param name="movie" value="http://www.youtube.com/v/tGXK4jKN_jY&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/tGXK4jKN_jY&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="250" height="150"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:verdana;font-size:100%;"  &gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Nexus One&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The Nexus One is a smartphone from &lt;span style="font-weight: bold;"&gt;Google&lt;/span&gt; that uses the Android open source mobile operating system. The device is manufactured by Taiwan's &lt;span style="font-weight: bold;"&gt;HTC Corporation&lt;/span&gt;, and became available on January 5, 2010. Features of the phone include the ability to transcribe voice to text, noise canceling dual microphones, and voice directions while driving.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVzl_a-XV94LssbXC7POVI9gy8HESc9aRygqLhcF3c6B5kiRDxxs5ktkDeiWvb4Gg-ReApE4o4sBZ6eXipmRVw5n1zvMv6h9na3B-6wepdwak0kvOS17Txis7MzJtnuQtrT3o7xONS8WI/s1600-h/Google_NEXUS.jpg"&gt;&lt;img style="cursor: pointer; width: 275px; height: 254px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVzl_a-XV94LssbXC7POVI9gy8HESc9aRygqLhcF3c6B5kiRDxxs5ktkDeiWvb4Gg-ReApE4o4sBZ6eXipmRVw5n1zvMv6h9na3B-6wepdwak0kvOS17Txis7MzJtnuQtrT3o7xONS8WI/s320/Google_NEXUS.jpg" alt="" id="BLOGGER_PHOTO_ID_5424523121209559314" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"  &gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Software : Android (operating system)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The Nexus One runs the Google Android 2.1 operating system, codenamed 'Eclair'. The 2.1 firmware version of the Android operating system adds a few aesthetic changes such as "Live Wallpapers" which are animated in the background and react to different user inputs. Android-based phones have access to more than 18,000 applications. It also replaces the "Application Drawer" with a single button which can be pressed to access the list of applications installed on the phone. This thumbnail list can be scrolled up and down and as it's scrolled, the applications roll up into a 3D cube instead of disappearing from the screen. Once the bottom of the application thumbnail list is hit, the screen bounces off similar to the iPhone functionality.&lt;br /&gt;&lt;br /&gt;&lt;object width="560" height="340"&gt;&lt;param name="movie" value="http://www.youtube.com/v/Z7I_-pfQyoo&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/Z7I_-pfQyoo&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="300" height="200"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"  &gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Android (operating system)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Android is a mobile operating system running on the &lt;span style="font-weight: bold;"&gt;Linux kernel&lt;/span&gt;. It was initially developed by Android Inc., a firm later purchased by Google, and lately by the Open Handset Alliance. It allows developers to write managed code in the Java language, controlling the device via Google-developed Java libraries.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Software development kit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The Android SDK includes a comprehensive set of development tools. These include a debugger, libraries, a handset emulator (based on QEMU), documentation, sample code, and tutorials. Currently supported development platforms include x86-architecture computers running Linux (any modern desktop Linux distribution), Mac OS X 10.4.8 or later, Windows XP or Vista. Requirements also include Java Development Kit, Apache Ant, and Python 2.2 or later. The officially supported integrated development environment (IDE) is Eclipse (3.2 or later) using the Android Development Tools (ADT) Plugin, though developers may use any text editor to edit Java and XML files then use command line tools to create, build and debug Android applications as well as control attached Android devices (e.g., triggering a reboot, installing software package(s) remotely).&lt;br /&gt;&lt;br /&gt;Android Applications are packaged in &lt;span style="font-weight: bold;"&gt;.apk format&lt;/span&gt; and stored under /data/app folder on the Android OS. The user can run the command adb root to access this folder as only the root has permissions to access this folder.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2010/01/nexus-one-nexus-one-is-smartphone-from.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVzl_a-XV94LssbXC7POVI9gy8HESc9aRygqLhcF3c6B5kiRDxxs5ktkDeiWvb4Gg-ReApE4o4sBZ6eXipmRVw5n1zvMv6h9na3B-6wepdwak0kvOS17Txis7MzJtnuQtrT3o7xONS8WI/s72-c/Google_NEXUS.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-7432289498328860249</guid><pubDate>Sat, 10 Oct 2009 08:15:00 +0000</pubDate><atom:updated>2009-10-10T01:33:13.829-07:00</atom:updated><title>Google Wave</title><description>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;Google wants to create a wave, yet again.&lt;/span&gt;  &lt;span style="font-family:verdana;"&gt;With &lt;a href="http://en.wikipedia.org/wiki/Google_Wave"&gt;Google Wave&lt;/a&gt;, a new tool that allows users to email, chat, play games, hold video conferences, edit documents, add images and conduct search, all in a single window.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRTvlXGl_43EDakCtERSV1ZcuTJj8nK27geoirqe_BEMpkaEHG7rimqO5nnbz-kaT7FlJJMnxEnlsuuFo-tPooOsGeDcGZWFVD2fGj8jqmSpWGsEl0q86errEoSubW5rHmsx64pfT54LQ/s1600-h/g1.jpg"&gt;&lt;img style="cursor: pointer; width: 300px; height: 271px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRTvlXGl_43EDakCtERSV1ZcuTJj8nK27geoirqe_BEMpkaEHG7rimqO5nnbz-kaT7FlJJMnxEnlsuuFo-tPooOsGeDcGZWFVD2fGj8jqmSpWGsEl0q86errEoSubW5rHmsx64pfT54LQ/s320/g1.jpg" alt="" id="BLOGGER_PHOTO_ID_5390882169383991330" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;Google Wave is a real-time multifaceted communication and collaboration platform.&lt;br /&gt;&lt;br /&gt;It unifies different web technologies such as email, instant messaging, wiki, online documents and social networking.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-SOLX7DNY6lcxm5NOmrcCm5IPsSwzpY9QulKhDCXyPcLfgq1FejFE8HXP1vIfC35e1UG0T5Icnhk2b6aX5CFJrcffOSY0KfrcJehFtokI2lW4zxrMWj_1YsMguXS9e9kaLBiBu6lcPMg/s1600-h/G2.gif"&gt;&lt;img style="cursor: pointer; width: 230px; height: 320px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-SOLX7DNY6lcxm5NOmrcCm5IPsSwzpY9QulKhDCXyPcLfgq1FejFE8HXP1vIfC35e1UG0T5Icnhk2b6aX5CFJrcffOSY0KfrcJehFtokI2lW4zxrMWj_1YsMguXS9e9kaLBiBu6lcPMg/s320/G2.gif" alt="" id="BLOGGER_PHOTO_ID_5390885040198242690" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;Google Wave works on the idea of providing a real-time communication and collaboration by integrating established and emerging web technolgies.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Colayer&lt;/span&gt;, a Swiss-Indian software company, already provides a platform for companies to communicate, collaborate and co-create by building interactive social Web 2.0 environment&lt;br /&gt;&lt;br /&gt;Microsoft, which is trying hard to catch up with Google on the internet, and Yahoo are widely expected to come up with Wave-like offerings. Buying out Colayer may be an option all three might be looking at.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;  &lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;font-family:verdana;" &gt;What is a wave?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;A wave is equal parts conversation and document. People can communicate and work together with richly formatted text, photos, videos, maps, and more.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;A wave is shared. Any participant can reply anywhere in the message, edit the content and add participants at any point in the process. Then playback lets anyone rewind the wave to see who said what and when.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;A wave is live. With live transmission as you type, participants on a wave can have faster conversations, see edits and interact with extensions in real-time. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;font-family:verdana;" &gt;Wave terminologies&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Wave&lt;/span&gt;: A container for enhanced set of threaded conversations that is viewable as a document. It modifies real time and stores historical information.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Wavelet&lt;/span&gt;: A threaded conversation spawned within a wave. All participants on a wavelet have read/write access to content within the wavelet.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Blip&lt;/span&gt;: A single message that appears in a wavelet.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Participants&lt;/span&gt;: Each wave has a set of one or more participants who engage and interact in a wave. Participants are added to a wave by existing participants. &lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2009/10/google-wave.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRTvlXGl_43EDakCtERSV1ZcuTJj8nK27geoirqe_BEMpkaEHG7rimqO5nnbz-kaT7FlJJMnxEnlsuuFo-tPooOsGeDcGZWFVD2fGj8jqmSpWGsEl0q86errEoSubW5rHmsx64pfT54LQ/s72-c/g1.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-3790969098221956168</guid><pubDate>Sat, 31 Jan 2009 12:08:00 +0000</pubDate><atom:updated>2009-07-18T07:14:22.621-07:00</atom:updated><title>Embedded Software Development Environments</title><description>&lt;object width="100%"&gt;&lt;embed src="http://www.android.com/swf/conveyor.swf" type="application/x-shockwave-flash" width="100%" height="90"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;!-- ####################################################################### --&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkFVpDXfmCz-Ev71xrdE5CSMgD1jclGsa5VciMdSjsstCwKR1lKLN-RRMRxHsn7hE6KJ2H21_KnsK4WXhrnXAuEafzW2NsPpaucbjLs0KPvYOOfGtm9ZddsI0czVeJURA7m57eQ3ocsmc/s1600-h/1.jpg"&gt;&lt;img style="cursor: pointer; width: 86px; height: 35px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkFVpDXfmCz-Ev71xrdE5CSMgD1jclGsa5VciMdSjsstCwKR1lKLN-RRMRxHsn7hE6KJ2H21_KnsK4WXhrnXAuEafzW2NsPpaucbjLs0KPvYOOfGtm9ZddsI0czVeJURA7m57eQ3ocsmc/s320/1.jpg" alt="" id="BLOGGER_PHOTO_ID_5297440660947903714" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;font-family:verdana;" &gt;Embedded Software Development Environments &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;* Operating systems used in embedded systems&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;* Programming languages used in embedded software development&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;* Development tools for writing embedded software &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;* Tools for device driver development&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Operating Systems&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;font-family:'trebuchet ms';" &gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 102, 0);"&gt;Without its software, a computer is basically a useless lump of metal.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;         &lt;span class="Apple-style-span" style="font-style: italic;"&gt;-  “Operating Systems: Design and Implementation”&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;The embedded system has to interact with hardware to achieve the desired functionality. This interaction consists of efficiently managing the input/output operation, the memory, the various tasks to be carried out, the resource allocation of specified tasks, etc. Generally, all of these functions are achieved through an &lt;a href="http://en.wikipedia.org/wiki/Operating_system"&gt;operating system&lt;/a&gt;. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzd-FXD4OUPKVVmT8NgmfTbDtO_xJXo5HAvf-RMyZDZFTk4qsSt7PpzMhq7Oyw6wfwYBS4hqt6tJsqK5fgsDPFBRY0rqHZ6T0GkizHKS4mB5UyTgiH7xRX5vFfcpLk2jUEPxHUv7hnE34/s1600-h/250px-Operating_system_placement.svg.jpg"&gt;&lt;img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzd-FXD4OUPKVVmT8NgmfTbDtO_xJXo5HAvf-RMyZDZFTk4qsSt7PpzMhq7Oyw6wfwYBS4hqt6tJsqK5fgsDPFBRY0rqHZ6T0GkizHKS4mB5UyTgiH7xRX5vFfcpLk2jUEPxHUv7hnE34/s320/250px-Operating_system_placement.svg.jpg" alt="" id="BLOGGER_PHOTO_ID_5297433959510162994" style="cursor: pointer; width: 125px; height: 185px;" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Architecture of a typical Operating system kernel&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;Kernel architecture&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;In computing, the kernel is the central component of most computer operating systems. Its responsibilities include managing the system's resources (the communication between hardware and software components). As a basic component of an operating system, a kernel provides the lowest-level abstraction layer for the resources (especially memory, processors and I/O devices) that application software must control to perform its function. It typically makes these facilities available to application processes through inter-process communication mechanisms and system calls. The following architecture is applicable to both desktops and embedded systems.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghhfvPGL8pF53IZus6rVay_XCYmxi6DEVmQBWG5nO6QDmY8IhFsU36yGsHZEKhttJebFjoKeVYVTDH_mSgnkd5RpMNVru4JSvY13sjVJ9bHolGZ2iguLPBxo6ZvLUsvFrWwukIkd199fs/s1600-h/382px-Kernel_Layout.svg.jpg"&gt;&lt;img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghhfvPGL8pF53IZus6rVay_XCYmxi6DEVmQBWG5nO6QDmY8IhFsU36yGsHZEKhttJebFjoKeVYVTDH_mSgnkd5RpMNVru4JSvY13sjVJ9bHolGZ2iguLPBxo6ZvLUsvFrWwukIkd199fs/s320/382px-Kernel_Layout.svg.jpg" alt="" id="BLOGGER_PHOTO_ID_5297434076257522866" style="cursor: pointer; width: 191px; height: 151px;" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;The kernel's primary purpose is to manage the computer's resources and allow other programs to run and use these resources. Typically, the resources consist of:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;* The Central Processing Unit (CPU, the processor)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;* The computer's memory&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;* Any Input/Output (I/O) devices present in the computer, such as keyboard, mouse, disk drives, printers, displays, etc. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;Kernels also usually provide methods for synchronization and communication between processes (called inter-process communication or IPC).&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;What is a Kernel? &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The kernel is the central part of an operating system, that directly controls the computer hardware. Usually, the kernel is the first of the user-installed software on a computer, booting directly after the BIOS. Operating system kernels are specific to the hardware on which they are running, thus most operating systems are distributed with different kernel options that are configured when the system is installed. Changing major hardware components such as the motherboard, processor, or memory, often requires a kernel update. Additionally, often new kernels are offered that improve system security or performance. The two major types of kernels competing in today's computer markets are the Windows kernel and the unix-like kernels.&lt;br /&gt;&lt;br /&gt;The Windows kernel is available only with the Microsoft Windows series of operating systems. It is proprietary software, developed and distributed by Microsoft Corporation. Introduced in Windows/386, it's many incarnations have since gone by several different names, and some had no names at all. The latest version of the Windows kernel was introduced in Windows NT, and has had many of it's functions removed and placed in user-mode software for Windows Vista. This leads to increased system stability and security. In Vista, application-level software exploits have much less access to the core functions of the operating system, and application crashes will not bring down the OS.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOA41DP5X4wlGdLMm22kRRcV0ozC2O2U1HMj5CviYp0yufxcmmVh4OIOMZdB2NIawPblLLzUjWI0HftEMm8DggeQMCPKr7do9vL2Dv-mPagD5wn5-IFKnjajeYVGnYjTcZs8i_o4WneC4/s1600-h/LINUX_KERNAL_MAP.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 241px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOA41DP5X4wlGdLMm22kRRcV0ozC2O2U1HMj5CviYp0yufxcmmVh4OIOMZdB2NIawPblLLzUjWI0HftEMm8DggeQMCPKr7do9vL2Dv-mPagD5wn5-IFKnjajeYVGnYjTcZs8i_o4WneC4/s320/LINUX_KERNAL_MAP.jpg" alt="" id="BLOGGER_PHOTO_ID_5313042992852552034" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;Unix-like kernels are a family of operating system kernels that are based upon, or operate similar to, the original Bell Labs UNIX operating system. Common examples of unix-like kernels are the Linux kernel, BSD, Mac OS, and Solaris. While many of these kernels were developed with original Bell Labs code as part of the software, not all of them have direct lineage to Bell. Linux, for instance, was developed as a free alternative to Minix, itself an independently developed variation of UNIX. Although originally running an original kernel design, Mac OS was outfitted with a unix-like kernel in 1988 with the introduction of A/UX. All subsequent Apple operating systems have unix-like kernels, including the current Mac OS-X's BSD-derived kernel.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2009/01/embedded-software-development.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkFVpDXfmCz-Ev71xrdE5CSMgD1jclGsa5VciMdSjsstCwKR1lKLN-RRMRxHsn7hE6KJ2H21_KnsK4WXhrnXAuEafzW2NsPpaucbjLs0KPvYOOfGtm9ZddsI0czVeJURA7m57eQ3ocsmc/s72-c/1.jpg" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-7719681655023767853</guid><pubDate>Sat, 22 Nov 2008 10:05:00 +0000</pubDate><atom:updated>2009-01-31T04:08:49.491-08:00</atom:updated><title>Embedded Systems</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0tD49SROpbpML5TdS__s4QdeyZWV0JyRF84XPIbOBX-RVN5KasB5cIgdpaXy72rLwPur-k3PBK4ExOY3IQ_t647kV8pxDnC6pGnCNMsm_O9Wru-GH-EeFNda15n25h74p18hIuAVgMhU/s1600-h/1.jpg"&gt;&lt;img style="cursor: pointer; width: 86px; height: 35px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0tD49SROpbpML5TdS__s4QdeyZWV0JyRF84XPIbOBX-RVN5KasB5cIgdpaXy72rLwPur-k3PBK4ExOY3IQ_t647kV8pxDnC6pGnCNMsm_O9Wru-GH-EeFNda15n25h74p18hIuAVgMhU/s320/1.jpg" alt="" id="BLOGGER_PHOTO_ID_5271613971616771986" border="0" /&gt;&lt;/a&gt;&lt;span style="text-decoration: underline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;font-family:verdana;"&gt;What is an Embedded System?&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;A specialized computer system that is part of a larger system or machine. Typically, an embedded system is housed on a single microprocessor board with the programs stored in ROM. Virtually all appliances that have a digital interface -- watches, microwaves, VCRs, cars -- utilize embedded systems. Some embedded systems include an operating system, but many are so specialized that the entire logic can be implemented as a single program.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeuBG2yTuITBZGoXHclLsYm_WnoyDSxGynuhyphenhyphenKqrJqFErfbzAw0ZTumLM_mpUlgnoGrgKPHcexgRkO2vHIkWxNup-_cjSs87jzehSJCR-8A4HMehMG8Z_YnYsPHkjyA4YJjvP8h9wdIIQ/s1600-h/776px-ADSL_modem_router_internals_labeled.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 247px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeuBG2yTuITBZGoXHclLsYm_WnoyDSxGynuhyphenhyphenKqrJqFErfbzAw0ZTumLM_mpUlgnoGrgKPHcexgRkO2vHIkWxNup-_cjSs87jzehSJCR-8A4HMehMG8Z_YnYsPHkjyA4YJjvP8h9wdIIQ/s320/776px-ADSL_modem_router_internals_labeled.jpg" alt="" id="BLOGGER_PHOTO_ID_5271424777233104610" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: center;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;OR&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt; &lt;span style="font-family:verdana;"&gt;An &lt;span style="font-weight: bold;"&gt;embedded system&lt;/span&gt; is some combination of computer hardware and software, either fixed in capability or programmable, that is specifically designed for a particular kind of application device. Industrial machines, automobiles, medical equipment, cameras, household appliances, airplanes, vending machines, and toys (as well as the more obvious cellular phone and PDA) are among the myriad possible hosts of an embedded system. Embedded systems that are programmable are provided with a programming interface, and embedded systems programming is a specialized occupation.&lt;/span&gt;  &lt;span style="font-family:verdana;"&gt;Certain operating systems or language platforms are tailored for the embedded market, such as EmbeddedJava and Windows XP Embedded. However, some low-end consumer products use very inexpensive microprocessors and limited storage, with the application and operating system both part of a single program. The program is written permanently into the system's memory in this case, rather than being loaded into RAM (random access memory) like programs on a personal computer.&lt;br /&gt;&lt;br /&gt;&lt;!----------------------------------------------------------------- --&gt;&lt;br /&gt;&lt;center&gt;&lt;br /&gt;&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/y9RAhEfLfJs&amp;amp;hl=en&amp;amp;fs=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/y9RAhEfLfJs&amp;amp;hl=en&amp;amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;/center&gt;&lt;br /&gt;&lt;!----------------------------------------------------------------- --&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Examples of embedded systems&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;PC Engines' ALIX.1C Mini-ITX embedded board with AMD Geode LX 800 together with Compact Flash, miniPCI and PCI slots, 44-pin IDE interface and 256MB RAM&lt;br /&gt;An embedded RouterBoard 112 with U.FL-RSMA pigtail and R52 miniPCI Wi-Fi card widely used by wireless Internet service providers (WISPs) in the Czech Republic.&lt;br /&gt;&lt;br /&gt;Embedded systems span all aspects of modern life and there are many examples of their use.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Telecommunications systems&lt;/span&gt; employ numerous embedded systems from telephone switches for the network to mobile phones at the end-user. Computer networking uses dedicated routers and network bridges to route data.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Consumer electronics&lt;/span&gt; include personal digital assistants (PDAs), mp3 players, mobile phones, videogame consoles, digital cameras, DVD players, GPS receivers, and printers. Many household appliances, such as microwave ovens, washing machines and dishwashers, are including embedded systems to provide flexibility, efficiency and features. Advanced HVAC systems use networked thermostats to more accurately and efficiently control temperature that can change by time of day and season. Home automation uses wired- and wireless-networking that can be used to control lights, climate, security, audio/visual, etc., all of which use embedded devices for sensing and controlling.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Transportation systems&lt;/span&gt; from flight to automobiles increasingly use embedded systems. New airplanes contain advanced avionics such as inertial guidance systems and GPS receivers that also have considerable safety requirements. Various electric motors — brushless DC motors, induction motors and DC motors — are using electric/electronic motor controllers. Automobiles, electric vehicles, and hybrid vehicles are increasingly using embedded systems to maximize efficiency and reduce pollution. Other automotive safety systems such as anti-lock braking system (ABS), Electronic Stability Control (ESC/ESP), traction control (TCS) and automatic four-wheel drive.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Medical equipment &lt;/span&gt;is continuing to advance with more embedded systems for vital signs monitoring, electronic stethoscopes for amplifying sounds, and various medical imaging (PET, SPECT, CT, MRI) for non-invasive internal inspections.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFN5sRjrymyVaOvZPEKAQ5JKnzv4NEiaRLqI2as3RU5vZdpZIIf2CxhU0LOmOL5VISq8-GzM_B74pL-XcxREkfj0UTnxlXB72AzhsQ78TFUH5iWiYUR6CftT_j_heeZP7ArE-axesgPlI/s1600-h/Arch003-540.gif"&gt;&lt;img style="cursor: pointer; width: 320px; height: 202px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFN5sRjrymyVaOvZPEKAQ5JKnzv4NEiaRLqI2as3RU5vZdpZIIf2CxhU0LOmOL5VISq8-GzM_B74pL-XcxREkfj0UTnxlXB72AzhsQ78TFUH5iWiYUR6CftT_j_heeZP7ArE-axesgPlI/s320/Arch003-540.gif" alt="" id="BLOGGER_PHOTO_ID_5271841933601496370" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Characteristics&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Embedded systems are designed to do some specific task, rather than be a general-purpose computer for multiple tasks. Some also have real-time performance constraints that must be met, for reasons such as safety and usability; others may have low or no performance requirements, allowing the system hardware to be simplified to reduce costs.&lt;br /&gt;&lt;br /&gt;2. Embedded systems are not always standalone devices. Many embedded systems consist of small, computerized parts within a larger device that serves a more general purpose. For example, the Gibson Robot Guitar features an embedded system for tuning the strings, but the overall purpose of the Robot Guitar is, of course, to play music.Similarly, an embedded system in an automobile provides a specific function as a subsystem of the car itself.&lt;br /&gt;&lt;br /&gt;3. The program instructions written for embedded systems are referred to as firmware, and are stored in read-only memory or Flash memory chips. They run with limited computer hardware resources: little memory, small or non-existent keyboard and/or screen.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Embedded software&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Embedded software is computer software which plays an integral role in the electronics it is supplied with.&lt;br /&gt;&lt;br /&gt;Embedded software's principal role is not Information Technology, but rather the interaction with the physical world. It's written for machines that are not, first and foremost, computers. Embedded software is 'built in' to the electronics in cars, telephones, audio equipment, robots, appliances, toys, security systems, pacemakers, televisions and digital watches, for example. This software can become very sophisticated in applications like airplanes, missiles, process control systems, and so on.&lt;br /&gt;&lt;br /&gt;Embedded software is usually written for special purpose hardware: that is computer chips that are different from general purpose CPUs, sometimes using Real-time operating system such as &lt;a href="http://en.wikipedia.org/wiki/LynxOS"&gt;LynxOS&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/VxWorks"&gt;VxWorks&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Linux"&gt;Linux&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/ECos"&gt;eCos&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/ThreadX"&gt;ThreadX&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Windows_CE"&gt;Windows CE&lt;/a&gt;, Fusion RTOS, &lt;a href="http://en.wikipedia.org/wiki/Nucleus_RTOS"&gt;Nucleus RTOS&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/RTEMS"&gt;RTEMS&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Integrity"&gt;Integrity&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Neutrino"&gt;Neutrino&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Programming Embedded Systems using C&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Why using C?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- It is a 'mid-level', with 'high-level' features and 'low_level' features&lt;br /&gt;- It is popular and very efficient&lt;br /&gt;- Good, well-proven compilers are available for every embedded processor&lt;br /&gt;&lt;br /&gt;The "super loop" software architecture&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;What is the minimum software environment you need to create an embedded C program?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV9XFcB6J-xTsEGFhuqjBnwU5gfgA6RKsHhvlt1PV7ReanlXW0rl5-W6Z9qtU5yo3FKVwfNXjuVDm-KjiSDNkv2kr3uM0QRxR4t7s_ZRdLO1J9_ciywLcRzXw6AwWbYfgGJKWn-NDRryE/s1600-h/0.jpg"&gt;&lt;img style="cursor: pointer; width: 239px; height: 156px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV9XFcB6J-xTsEGFhuqjBnwU5gfgA6RKsHhvlt1PV7ReanlXW0rl5-W6Z9qtU5yo3FKVwfNXjuVDm-KjiSDNkv2kr3uM0QRxR4t7s_ZRdLO1J9_ciywLcRzXw6AwWbYfgGJKWn-NDRryE/s320/0.jpg" alt="" id="BLOGGER_PHOTO_ID_5271872745243812082" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;NOTE:&lt;/span&gt; 'Super loop' is required because there is no operating system to return to. The application will keep looping until the system power is removed.&lt;br /&gt;&lt;br /&gt;One of the most fundamental differences between programs developed for embedded systems and those written for other computer platforms is that the embedded programs almost always have an infinite loop.&lt;br /&gt;&lt;br /&gt;The infinite loop is necessary because the embedded software’s job is never done. It is intended to be run until either the world comes to an end or the board is reset, whichever happens first.&lt;br /&gt;&lt;br /&gt;In addition, most embedded systems run only one piece of software. Although hardware is important, the system is not a digital watch or a cellular phone or a microwave oven without that software. If the software stops running, the hardware is rendered useless. So the functional parts of an embedded program are almost always surrounded by an infinite loop that ensures that they will run forever.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Writing Hardware specific code&lt;/span&gt;&lt;br /&gt;In hardware specific code, we use hardware peripherals like ports, timers and uart etc. Do not forget to add header file for controller you are using, otherwise you will not be able to access registers related to peripherals.&lt;br /&gt;&lt;br /&gt;Lets write a simple code to Blink LED on Port1, Pin1.&lt;br /&gt;&lt;br /&gt;CODE:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiehYZyw4Qk5_TZEosQI0V1103s6I_KAq50YS3xcfdf_MDltrKgeus4iUu-QPJwgfmHmvCrK9K4mauNHNpkGQqFFmsNc8nqjlmFkUxtIZADnR8Zvlbf3u2CveadflkK1FPzKXRxxAhyh2A/s1600-h/111.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 294px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiehYZyw4Qk5_TZEosQI0V1103s6I_KAq50YS3xcfdf_MDltrKgeus4iUu-QPJwgfmHmvCrK9K4mauNHNpkGQqFFmsNc8nqjlmFkUxtIZADnR8Zvlbf3u2CveadflkK1FPzKXRxxAhyh2A/s320/111.jpg" alt="" id="BLOGGER_PHOTO_ID_5271873633869462706" border="0" /&gt;&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2008/11/embedded-systems.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0tD49SROpbpML5TdS__s4QdeyZWV0JyRF84XPIbOBX-RVN5KasB5cIgdpaXy72rLwPur-k3PBK4ExOY3IQ_t647kV8pxDnC6pGnCNMsm_O9Wru-GH-EeFNda15n25h74p18hIuAVgMhU/s72-c/1.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-7503054871153129902</guid><pubDate>Sun, 24 Aug 2008 19:57:00 +0000</pubDate><atom:updated>2008-09-07T04:19:16.646-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">sockets</category><title>Sockets</title><description>&lt;span style=";font-family:verdana;font-size:100%;"  &gt;&lt;span style="font-weight: bold;"&gt;Sockets&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;A socket is a bidirectional communication device that can be used to communicate with another process on the same machine or with a process running on other machines.&lt;br /&gt;&lt;br /&gt;Sockets are the only &lt;a href="http://en.wikipedia.org/wiki/Inter-process_communication"&gt;interprocess communication&lt;/a&gt;  that permit communication between processes on different computers. Internet programs such as &lt;a href="http://en.wikipedia.org/wiki/Telnet"&gt;Telnet&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Rlogin"&gt;rlogin&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/File_Transfer_Protocol"&gt;FTP&lt;/a&gt;, talk, and the &lt;a href="http://en.wikipedia.org/wiki/World_Wide_Web"&gt;World Wide Web&lt;/a&gt; use sockets.&lt;br /&gt;&lt;br /&gt;For example, you can obtain the WWW page from a Web server using the Telnet program because they both use sockets for network communications.&lt;br /&gt;&lt;br /&gt;To open a connection to a WWW server at &lt;a href="http://www.nidhish.co.nr/"&gt;www.nidhish.co.nr&lt;/a&gt;, use&lt;br /&gt;telnet &lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"  &gt;www.nidhish.co.nr&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"  &gt; 80.The magic constant 80 specifies&lt;br /&gt;a connection to the Web server programming running &lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"  &gt;www.nidhish.co.nr&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"  &gt; instead of some other process.&lt;br /&gt;&lt;br /&gt;Try typing GET / after the connection is established.This sends a message through the socket to the &lt;a href="http://en.wikipedia.org/wiki/Web_server"&gt;Web server&lt;/a&gt;, which replies by sending the home page’s &lt;a href="http://en.wikipedia.org/wiki/HTML"&gt;HTML&lt;/a&gt; source and then closing the connection.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Networks&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Most network application can be divided into two pieces: a &lt;a href="http://en.wikipedia.org/wiki/Client-side"&gt;client&lt;/a&gt; and a &lt;a href="http://en.wikipedia.org/wiki/Server-side"&gt;server&lt;/a&gt;. A client is the side that initiates the communication process, where as the server responds to incoming client requests.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: right;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjw8gSIJZ05fALyYO6e8a1RjfRTXotY7G6h8YkDRQMeejf-2Rp-lvqKXZaThnssXTZ2IaJo4DQX8s1JUpCeE-R4xicIyLQH3ewUKfynE0m8u7F5dd2-LIJLQnT6F54w7EdSGJEmtLq0kcg/s1600-h/COMMCN_LINK.gif"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjw8gSIJZ05fALyYO6e8a1RjfRTXotY7G6h8YkDRQMeejf-2Rp-lvqKXZaThnssXTZ2IaJo4DQX8s1JUpCeE-R4xicIyLQH3ewUKfynE0m8u7F5dd2-LIJLQnT6F54w7EdSGJEmtLq0kcg/s320/COMMCN_LINK.gif" alt="" id="BLOGGER_PHOTO_ID_5238182314589588162" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=";font-family:verdana;font-size:100%;"  &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are numerous network protocols, such as Netbios, RPC (Remote Procedure Call), DCOM, Pipe, IPC (Inter-process Communication) that can be used for the Comm Link. We will only look at TCP/IP. In particular we will look at IPv4 since this is widely implemented by many socket vendors.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;TCP Transmission Control Protocol&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Although &lt;a href="http://en.wikipedia.org/wiki/Transmission_Control_Protocol"&gt;TCP&lt;/a&gt; can be implemented to work over any &lt;a href="http://en.wikipedia.org/wiki/Transport_protocol"&gt;transport protocol&lt;/a&gt;, it's usually synonymous with IP. TCP is a connection -oriented stream protocol (like a telephone call). TCP communication happens using a handshake process, where each data that is sent is acknowledge by the recipient within the time of TCP’s timer value. TCP provides many services such as data reliability, error checking, and flow control. If a data packet is corrupt or lost (not acknowledged), TCP will retransmitted the data from the client side automatically. Because the route a packet takes can be many, one packet may arrive before the one sent earlier. As data packets arrive, it is the job of TCP to assemble the packets into the proper order. This is shown below with a factious network &lt;a href="http://en.wikipedia.org/wiki/Network_topology"&gt;topology&lt;/a&gt; layout, where the data packet takes (n) number of hops to get from the source to the destination. On a bigger network like the &lt;a href="http://en.wikipedia.org/wiki/Internet"&gt;Internet&lt;/a&gt;, there are many routes a &lt;a href="http://en.wikipedia.org/wiki/Packet_%28information_technology%29"&gt;data packet&lt;/a&gt; can take to arrive at its final destination.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Network Hop Topology&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhEVlO6OcEKTY5DC8sEMpOL_YJ6rTM0_Gqx2PxbmV2gu0oYnvJ9-kuigAwfmWEsoKqX172axXDHQDXH0NM8iVid-J1gDHE4-EJxsky4KlOXG8KbMCIqwn3MBd0FTWOeOW6VROItUdIPJQ/s1600-h/NW_HOPS.gif"&gt;&lt;img style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhEVlO6OcEKTY5DC8sEMpOL_YJ6rTM0_Gqx2PxbmV2gu0oYnvJ9-kuigAwfmWEsoKqX172axXDHQDXH0NM8iVid-J1gDHE4-EJxsky4KlOXG8KbMCIqwn3MBd0FTWOeOW6VROItUdIPJQ/s320/NW_HOPS.gif" alt="" id="BLOGGER_PHOTO_ID_5243227522517959634" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:verdana;" &gt;Byte Ordering&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;There are two types of memory byte ordering in use today that are very much machine &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;dependent. They are known as &lt;a href="http://en.wikipedia.org/wiki/Endianness"&gt;little-endian&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Endianness"&gt;big-endian&lt;/a&gt;, because of this we have to be &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;very careful how we interpret numerical data. If we do not take into account the &lt;a href="http://en.wikipedia.org/wiki/Endianness"&gt;endiannes&lt;/a&gt;, &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;the numerical data we read will be corrupt.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh60w2fPnOBbe-WY2iXvzlQx7Vysdmwxo8pkLYyVCHzWO4MDOwM00pdt_53H4C1F7W1i7381RBlX46IE1NI5eTfo0BacnMzHAh3ECl2V453dEW-KQShyphenhyphenu-3b_T6TeZ6t7YKmbNcTqJvkgE/s1600-h/ENDIAN.gif"&gt;&lt;img style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh60w2fPnOBbe-WY2iXvzlQx7Vysdmwxo8pkLYyVCHzWO4MDOwM00pdt_53H4C1F7W1i7381RBlX46IE1NI5eTfo0BacnMzHAh3ECl2V453dEW-KQShyphenhyphenu-3b_T6TeZ6t7YKmbNcTqJvkgE/s320/ENDIAN.gif" alt="" id="BLOGGER_PHOTO_ID_5243230381248331266" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI4T_k_FMqTg0TfZUT8hLNtkUlEESG8S4-EMgprKddxbjLyuIn5cxhs2BTl9j5NXcJQPG9JEHL70mrox_UipaNdG7p6vUOqxaraW5yw7HnbW7AS2ntb2HpGr8dho77i7x7vmvIjiz1jsg/s1600-h/BYTE_ORDERING.gif"&gt;&lt;img style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI4T_k_FMqTg0TfZUT8hLNtkUlEESG8S4-EMgprKddxbjLyuIn5cxhs2BTl9j5NXcJQPG9JEHL70mrox_UipaNdG7p6vUOqxaraW5yw7HnbW7AS2ntb2HpGr8dho77i7x7vmvIjiz1jsg/s320/BYTE_ORDERING.gif" alt="" id="BLOGGER_PHOTO_ID_5243235948565341282" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:verdana;font-size:100%;"  &gt;When working with numeric data, one needs to convert from machine (host) byte order to network byte order when sending data (write-op), and then from network byte order to machine byte order when retrieving data (read-op). The APIs to make the conversion are:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;htons()and htonl()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;" &gt;//host to network&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;uint16_t &lt;span style="font-weight: bold;"&gt;htons&lt;/span&gt;(uint16_t host16bitvalue);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;uint32_t &lt;span style="font-weight: bold;"&gt;htonl&lt;/span&gt;(uint32_t host32bitvalue);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ntohs() and ntohl()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;" &gt;&lt;span style="color: rgb(0, 153, 0);"&gt;//network to host&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;uint16_t &lt;span style="font-weight: bold;"&gt;ntohs&lt;/span&gt;(uint16_t net16bitvalue);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;unit32_t &lt;span style="font-weight: bold;"&gt;ntohl&lt;/span&gt;(unit32_t net32bitvalue);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2008/08/sockets.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjw8gSIJZ05fALyYO6e8a1RjfRTXotY7G6h8YkDRQMeejf-2Rp-lvqKXZaThnssXTZ2IaJo4DQX8s1JUpCeE-R4xicIyLQH3ewUKfynE0m8u7F5dd2-LIJLQnT6F54w7EdSGJEmtLq0kcg/s72-c/COMMCN_LINK.gif" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-4984029350512614033</guid><pubDate>Sat, 16 Aug 2008 12:59:00 +0000</pubDate><atom:updated>2008-08-16T06:30:08.924-07:00</atom:updated><title>Thread Creation</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7mihSivPYNlvCMjSI_XIGnTQnZyYjgAp1QDyz-4H4ADSNLsRGl78Tpp_VJ6rpxw691yL4kAv3nbBlNliucjMCix6d76RP1fc6MnRz51PjKKg635bzTxEx_Upqits3zcca81mDjH9ZH7g/s1600-h/cplusplus_small.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7mihSivPYNlvCMjSI_XIGnTQnZyYjgAp1QDyz-4H4ADSNLsRGl78Tpp_VJ6rpxw691yL4kAv3nbBlNliucjMCix6d76RP1fc6MnRz51PjKKg635bzTxEx_Upqits3zcca81mDjH9ZH7g/s320/cplusplus_small.jpg" alt="" id="BLOGGER_PHOTO_ID_5235101469261386978" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:verdana;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Thread_%28computer_science%29"&gt;Thread&lt;/a&gt; in a process is identified by a thread ID. When referring to thread IDs&lt;/span&gt; &lt;span style="font-family:verdana;"&gt;in C or C++ programs, use the type &lt;a href="http://en.wikipedia.org/wiki/POSIX_Threads"&gt;&lt;span style="font-weight: bold;"&gt;pthread_t&lt;/span&gt;&lt;/a&gt;. Each thread executes a thread function.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;This is just an ordinary function and contains the code that the thread should run.&lt;/span&gt; &lt;span style="font-family:verdana;"&gt;When the function returns, the thread exits.&lt;/span&gt;  &lt;span style="font-family:verdana;"&gt;The &lt;span style="font-weight: bold;"&gt;pthread_create&lt;/span&gt; function creates a new thread.&lt;br /&gt;&lt;br /&gt;You provide it with the following:&lt;/span&gt;  &lt;span style="font-family:verdana;"&gt;&lt;br /&gt;1. A pointer to a &lt;span style="font-weight: bold;"&gt;pthread_t&lt;/span&gt; variable, in which the thread ID of the new thread is&lt;/span&gt; &lt;span style="font-family:verdana;"&gt;stored.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family:verdana;"&gt;2. A pointer to a thread attribute object.This object controls details of how the&lt;/span&gt; &lt;span style="font-family:verdana;"&gt;thread interacts with the rest of the program. If you pass NULL as the thread&lt;/span&gt; &lt;span style="font-family:verdana;"&gt;attribute, a thread will be created with the default thread attributes.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;3. A pointer to the thread function.This is an ordinary &lt;a href="http://en.wikipedia.org/wiki/Function_pointer"&gt;function pointer&lt;/a&gt;, of this&lt;/span&gt; &lt;span style="font-family:verdana;"&gt;type: void* (*) (void*)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;4. A thread argument value of type void*. Whatever you pass is simply passed as&lt;/span&gt; &lt;span style="font-family:verdana;"&gt;the argument to the thread function when the thread begins executing.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#include &amp;lt;pthread.h&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;" &gt;/* Prints x’s to stderr. The parameter is unused. Does not return. */&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;void* print_xs(void* unused)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    while(1)&lt;br /&gt; {&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;       fputc (‘x’, stderr);&lt;br /&gt; }&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;return NULL;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;" &gt;/* The main program. */&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;int main()&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    pthread_t thread_id;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;   &lt;span style="color: rgb(0, 153, 0);"&gt; /* Create a new thread. The new thread will run&lt;br /&gt;the print_xs&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;" &gt; function. */&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    &lt;span style="font-weight: bold;"&gt;pthread_create&lt;/span&gt;(&amp;amp;thread_id, NULL, &amp;amp;print_xs, NULL);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    &lt;span style="color: rgb(0, 153, 0);"&gt;/* Print o’s continuously to stderr. */&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    while(1)&lt;br /&gt; {&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;        fputc(‘o’, stderr);&lt;br /&gt; }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    return 0;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Compile and link this program using the following code:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&gt; cc -o thread-create &lt;span style="font-weight: bold;"&gt;thread-create.c&lt;/span&gt; -lpthread&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2008/08/thread-creation.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7mihSivPYNlvCMjSI_XIGnTQnZyYjgAp1QDyz-4H4ADSNLsRGl78Tpp_VJ6rpxw691yL4kAv3nbBlNliucjMCix6d76RP1fc6MnRz51PjKKg635bzTxEx_Upqits3zcca81mDjH9ZH7g/s72-c/cplusplus_small.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-4900016750779715524</guid><pubDate>Sun, 10 Aug 2008 09:41:00 +0000</pubDate><atom:updated>2008-08-10T10:55:48.681-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ipc</category><title>Inter-Process Communication (IPC) Methods</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiw_wreFzEtrmpB9qoPIzsyDj3l1Q7cnPhmxwPJ3REhkAoQav4v9zosvPyiMci9rPq37KZrpEnLfAsYATJDlLCUP8-eldiJtq2BRtVfJythn-QRPlrWuTAY9VR-VM0ifht5RdE7UIDSHK0/s1600-h/cplusplus_small.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiw_wreFzEtrmpB9qoPIzsyDj3l1Q7cnPhmxwPJ3REhkAoQav4v9zosvPyiMci9rPq37KZrpEnLfAsYATJDlLCUP8-eldiJtq2BRtVfJythn-QRPlrWuTAY9VR-VM0ifht5RdE7UIDSHK0/s320/cplusplus_small.jpg" alt="" id="BLOGGER_PHOTO_ID_5232850645404689794" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. File&lt;/span&gt; - (All operating systems)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;A computer file is a block of arbitrary information, or &lt;a href="http://en.wikipedia.org/wiki/Resource_%28computer_science%29"&gt;resource&lt;/a&gt; for storing information, which is available to a &lt;a href="http://en.wikipedia.org/wiki/Computer_program"&gt;computer program&lt;/a&gt; and is usually based on some kind of durable storage. A file is durable in the sense that it remains available for programs to use after the current program has finished. Computer files can be considered as the modern counterpart of paper documents which traditionally were kept in offices' and libraries' &lt;a href="http://en.wikipedia.org/wiki/Filing_cabinet"&gt;files&lt;/a&gt;, which are the source of the term.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. Signal &lt;/span&gt;- (Most operating systems; some systems, such as Windows, only implement signals in the C run-time library and do not actually provide support for their use as an IPC technique)&lt;br /&gt;&lt;br /&gt;A signal is a limited form of &lt;a href="http://en.wikipedia.org/wiki/Inter-process_communication"&gt;inter-process communication&lt;/a&gt; used in &lt;a href="http://en.wikipedia.org/wiki/Unix"&gt;Unix&lt;/a&gt;, Unix-like, and other &lt;a href="http://en.wikipedia.org/wiki/POSIX"&gt;POSIX&lt;/a&gt;-compliant operating systems. Essentially it is an &lt;a href="http://en.wikipedia.org/wiki/Asynchronous"&gt;asynchronous &lt;/a&gt;notification sent to a process in order to notify it of an event that occurred. When a signal is sent to a process, the operating system interrupts the process' normal&lt;a href="http://en.wikipedia.org/wiki/Control_flow"&gt; flow of execution&lt;/a&gt;. Execution can be interrupted during any non-atomic instruction. If the process has previously registered a signal handler, that routine is executed. Otherwise the default signal handler is executed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3. Socket &lt;/span&gt;- (Most operating systems)&lt;br /&gt;&lt;br /&gt;Sockets are just like "worm holes" in science fiction. When things go into one end, they (should) come out of the other. Different kinds of sockets have different properties. Sockets are either connection-oriented or connectionless. &lt;a href="http://en.wikipedia.org/wiki/Connection_oriented"&gt;Connection-oriented&lt;/a&gt; sockets allow for data to flow back and forth as needed, while connectionless sockets (also known as &lt;a href="http://en.wikipedia.org/wiki/Datagram_Sockets"&gt;datagram sockets&lt;/a&gt;) allow only one message at a time to be transmitted, without an open connection. There are also different socket families. The two most common are AF_INET for internet connections, and AF_UNIX for unix IPC (interprocess communication).&lt;br /&gt;&lt;br /&gt;Of the various forms of IPC (Inter Process Communication), sockets are by far the most popular. On any given platform, there are likely to be other forms of IPC that are faster, but for &lt;a href="http://en.wikipedia.org/wiki/Cross-platform"&gt;cross-platform&lt;/a&gt; communication, &lt;a href="http://en.wikipedia.org/wiki/Berkeley_sockets"&gt;sockets&lt;/a&gt; are about the only game in town.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4. Pipe &lt;/span&gt;- (All POSIX systems)&lt;br /&gt;&lt;br /&gt;In Unix-like computer operating systems, a &lt;a href="http://en.wikipedia.org/wiki/Pipeline_%28Unix%29"&gt;pipeline&lt;/a&gt; is the original software pipeline: a set of processes chained by their standard streams, so that the output of each process (stdout) feeds directly as input (stdin) of the next one. Each connection is implemented by an anonymous pipe. Filter programs are often used in this configuration.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5. Named pipe&lt;/span&gt; - (All POSIX systems)&lt;br /&gt;&lt;br /&gt;In computing, a named pipe (also &lt;a href="http://en.wikipedia.org/wiki/FIFO"&gt;FIFO&lt;/a&gt; for its behavior) is an extension to the traditional pipe concept on Unix and Unix-like systems, and is one of the methods of inter-process communication. The concept is also found in &lt;a href="http://en.wikipedia.org/wiki/Microsoft_Windows"&gt;Microsoft Windows&lt;/a&gt;, although the semantics differ substantially. A traditional pipe is "unnamed" because it exists anonymously and persists only for as long as the process is running. A named pipe is system-persistent and exists beyond the life of the process and must be "unlinked" or deleted once it is no longer being used. Processes generally attach to the named pipe (usually appearing as a file) to perform IPC (inter-process communication).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6. Semaphore &lt;/span&gt;- (All POSIX systems)&lt;br /&gt;&lt;br /&gt;A semaphore is nothing but a term used in &lt;a href="http://en.wikipedia.org/wiki/UNIX"&gt;UNIX&lt;/a&gt; for a variable which acts as a counter. So the next question that comes in mind is what for we need this variable. It’s so simple.&lt;br /&gt;&lt;br /&gt;For instance there may be times when two &lt;a href="http://en.wikipedia.org/wiki/Process_%28computing%29"&gt;processes&lt;/a&gt; try to access the same file simultaneously. In this event we must control the access of the file when the other process is accessing. This is done by assigning value to semaphore.&lt;br /&gt;&lt;br /&gt;A &lt;a href="http://en.wikipedia.org/wiki/Semaphore_%28programming%29"&gt;semaphore&lt;/a&gt;, in computer science, is a protected variable (an entity storing a value) or abstract data type (an entity grouping several variables that may or may not be numerical) which constitutes the classic method for restricting access to shared resources, such as shared memory, in a &lt;a href="http://en.wikipedia.org/wiki/Computer_multitasking#Multiprogramming"&gt;multiprogramming&lt;/a&gt; environment (a system where several programs may be executing, or taking turns to execute, at once).&lt;br /&gt;&lt;br /&gt;Semaphores exist in many variants, though usually the term refers to a counting semaphore, since a binary semaphore is better known as a &lt;a href="http://en.wikipedia.org/wiki/Mutual_exclusion"&gt;mutex&lt;/a&gt;. A counting semaphore is a counter for a set of available resources, rather than a locked/unlocked flag of a single resource.&lt;br /&gt;&lt;br /&gt;Semaphores are the classic solution to preventing &lt;a href="http://en.wikipedia.org/wiki/Race_condition"&gt;race conditions&lt;/a&gt; in the dining philosophers problem, although they do not prevent resource &lt;a href="http://en.wikipedia.org/wiki/Deadlock"&gt;deadlocks&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;7. Shared memory &lt;/span&gt;- (All POSIX systems)&lt;br /&gt;&lt;br /&gt;What is Shared Memory?&lt;br /&gt;&lt;br /&gt;Shared Memory is an efficient means of passing data between programs. One program will create a memory portion which other processes (if permitted) can access. Shared memory is another method of &lt;a href="http://en.wikipedia.org/wiki/Inter-process_communication"&gt;interprocess communication&lt;/a&gt; (IPC) whereby 2 or more processes share a single chunk of memory to communicate. The shared memory system can also be used to set permissions on memory, allowing for things like malloc &lt;a href="http://en.wikipedia.org/wiki/Debugger"&gt;debuggers&lt;/a&gt; to be written.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgykJ_Pv4gqojOMQg0QyppoxhiskNox6kXDphWMld_CA_srRoc3BzHbVc_VPpUN5pnUHiBTc5LsZBitYPb-cShsS5xjN-d_lwqFVDini0QNZJrAPg3GFENSXZp6QJHQYrrTS_Ggs1IyPVY/s1600-h/SM.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgykJ_Pv4gqojOMQg0QyppoxhiskNox6kXDphWMld_CA_srRoc3BzHbVc_VPpUN5pnUHiBTc5LsZBitYPb-cShsS5xjN-d_lwqFVDini0QNZJrAPg3GFENSXZp6QJHQYrrTS_Ggs1IyPVY/s320/SM.jpg" alt="" id="BLOGGER_PHOTO_ID_5232949124151647538" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Types of Shared memory available&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Basically there are two different types of shared memory available for most flavors of &lt;a href="http://en.wikipedia.org/wiki/Unix"&gt;UNIX&lt;/a&gt;. As you may have guessed, each of the two original ancestors of modern UNIX have their own implementation, although almost all modern &lt;a href="http://en.wikipedia.org/wiki/Unix"&gt;UNIX &lt;/a&gt;flavors implement both. The names of the respective implementations are System V IPC, and &lt;a href="http://en.wikipedia.org/wiki/Berkeley_Software_Distribution"&gt;BSD&lt;/a&gt; mmap.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;8. Message queue&lt;/span&gt; - (Most operating systems)&lt;br /&gt;&lt;br /&gt;In computer science, a message queue is a &lt;a href="http://en.wikipedia.org/wiki/Software_engineering"&gt;software-engineering&lt;/a&gt; component used for interprocess communication or inter-thread communication within the same process. It uses a &lt;a href="http://en.wikipedia.org/wiki/Queue_%28data_structure%29"&gt;queue&lt;/a&gt; for &lt;a href="http://en.wikipedia.org/wiki/Message_%28computer_science%29"&gt;messaging&lt;/a&gt; – the passing of control or of content. Group communication systems provide similar kinds of functionality.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSQ67GK46ZJcKXy5XSTi0RFnrcTaQXIeTX5pcWI4SjJ5EYIuHdb5WXfcndULdGScaniMx-ma4-ilIUa0_aLCUEtTBdrHu2xFTD64r8fqlR3XRpkXQFRIvMOeXlWqY5h_nLNc5Itc_jRbY/s1600-h/Fig2.2.gif"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSQ67GK46ZJcKXy5XSTi0RFnrcTaQXIeTX5pcWI4SjJ5EYIuHdb5WXfcndULdGScaniMx-ma4-ilIUa0_aLCUEtTBdrHu2xFTD64r8fqlR3XRpkXQFRIvMOeXlWqY5h_nLNc5Itc_jRbY/s320/Fig2.2.gif" alt="" id="BLOGGER_PHOTO_ID_5232924687818528610" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Message queues provide an &lt;a href="http://en.wikipedia.org/wiki/Asynchronous_communication"&gt;asynchronous&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Communications_protocol"&gt;communications protocol&lt;/a&gt;, meaning that the sender and receiver of the message do not need to interact with the message queue at the same time. Messages placed onto the queue are stored until the recipient retrieves them.&lt;br /&gt;&lt;br /&gt;Examples of commercial implementations of this kind of message queueing software (also known as &lt;a href="http://en.wikipedia.org/wiki/Message_Oriented_Middleware"&gt;Message Oriented Middleware&lt;/a&gt;) include &lt;a href="http://en.wikipedia.org/wiki/WebSphere_MQ"&gt;IBM's WebSphere&lt;/a&gt; MQ (formerly MQ Series), &lt;a href="http://en.wikipedia.org/wiki/Oracle_Advanced_Queuing"&gt;Oracle Advanced Queuing&lt;/a&gt; (AQ) within an &lt;a href="http://en.wikipedia.org/wiki/Oracle_database"&gt;Oracle database&lt;/a&gt;, and &lt;a href="http://en.wikipedia.org/wiki/Microsoft_Message_Queuing"&gt;Microsoft's MSMQ&lt;/a&gt;. There is a Java standard called &lt;a href="http://en.wikipedia.org/wiki/Java_Message_Service"&gt;Java Message Service&lt;/a&gt;, which has, associated with it, a number of implementations, both proprietary and free software.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Synchronous vs. asynchronous&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Many of the more widely-known communications protocols in use operate synchronously. The &lt;a href="http://en.wikipedia.org/wiki/HTTP"&gt;HTTP&lt;/a&gt; protocol – used in the &lt;a href="http://en.wikipedia.org/wiki/World_Wide_Web"&gt;World Wide Web&lt;/a&gt; and in &lt;a href="http://en.wikipedia.org/wiki/Web_services"&gt;web services&lt;/a&gt; – offers an obvious example.&lt;br /&gt;&lt;br /&gt;In a synchronous model, one system makes a connection to another, sends a request and waits for a reply.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2008/08/inter-process-communication-ipc-methods.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiw_wreFzEtrmpB9qoPIzsyDj3l1Q7cnPhmxwPJ3REhkAoQav4v9zosvPyiMci9rPq37KZrpEnLfAsYATJDlLCUP8-eldiJtq2BRtVfJythn-QRPlrWuTAY9VR-VM0ifht5RdE7UIDSHK0/s72-c/cplusplus_small.jpg" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-6047021833197774825</guid><pubDate>Sun, 10 Aug 2008 09:22:00 +0000</pubDate><atom:updated>2008-08-10T04:32:20.159-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ipc</category><title>Inter-Process Communication (IPC) in Unix</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEd0J-MZE9Nwqux8DcuXGVhVFAdzdjgX0RMSXMSfAWNevqhNDYFpd4d_DUR2ESULoG9v3J_-FlrmlsIlAVf7NCtmo5mufY4rARrOj-Sn5HD87QN4RhE_FvdEr5XM0Pcar47EIDTqK-Cw4/s1600-h/cplusplus_small.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEd0J-MZE9Nwqux8DcuXGVhVFAdzdjgX0RMSXMSfAWNevqhNDYFpd4d_DUR2ESULoG9v3J_-FlrmlsIlAVf7NCtmo5mufY4rARrOj-Sn5HD87QN4RhE_FvdEr5XM0Pcar47EIDTqK-Cw4/s320/cplusplus_small.jpg" alt="" id="BLOGGER_PHOTO_ID_5232850127435814610" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:verdana;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Inter-Process Communication&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; (IPC) is a set of techniques for the exchange of data among two or more &lt;a href="http://en.wikipedia.org/wiki/Thread_%28computer_science%29"&gt;threads &lt;/a&gt;in one or more &lt;a href="http://en.wikipedia.org/wiki/Process_%28computing%29"&gt;processes&lt;/a&gt;. Processes may be running on one or more computers connected by a network. IPC techniques are divided into methods for &lt;a href="http://en.wikipedia.org/wiki/Message_passing"&gt;message passing&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Synchronization_%28computer_science%29"&gt;synchronization&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Shared_memory"&gt;shared memory&lt;/a&gt;, and &lt;a href="http://en.wikipedia.org/wiki/Remote_procedure_call"&gt;remote procedure calls&lt;/a&gt; (RPC). The method of IPC used may vary based on the bandwidth and latency of communication between the threads, and the type of data being communicated.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;IPC may also be referred to as inter-thread communication and inter-application communication.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2008/08/inter-process-communication-ipc-in-unix.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEd0J-MZE9Nwqux8DcuXGVhVFAdzdjgX0RMSXMSfAWNevqhNDYFpd4d_DUR2ESULoG9v3J_-FlrmlsIlAVf7NCtmo5mufY4rARrOj-Sn5HD87QN4RhE_FvdEr5XM0Pcar47EIDTqK-Cw4/s72-c/cplusplus_small.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-18286977333139786</guid><pubDate>Fri, 08 Aug 2008 10:40:00 +0000</pubDate><atom:updated>2008-08-10T04:37:09.836-07:00</atom:updated><title>VIDEO - Beginning C++</title><description>&lt;object height="344" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/H5okYYSM90I&amp;amp;hl=en&amp;amp;fs=1&amp;amp;rel=0"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;embed src="http://www.youtube.com/v/H5okYYSM90I&amp;amp;hl=en&amp;amp;fs=1&amp;amp;rel=0" type="application/x-shockwave-flash" allowfullscreen="true" height="344" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2008/08/incredible-ndia.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-5407551531408540499</guid><pubDate>Wed, 06 Aug 2008 19:20:00 +0000</pubDate><atom:updated>2008-08-06T12:50:34.328-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">unix_process</category><title>What is a UNIX Process</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9r7HwntgiRLfzjGuqclOaJteyn45RiTCZlE-9rr69J2r1NwWz2MoFhQQXXtNaYnAQPOqlPHRfj8AsEK3FegQqgduomqQIIKFilgkdwiHIoOvnesIJxdIPsgvz_7MYWLP0ATrVvK191Ro/s1600-h/cplusplus_small.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9r7HwntgiRLfzjGuqclOaJteyn45RiTCZlE-9rr69J2r1NwWz2MoFhQQXXtNaYnAQPOqlPHRfj8AsEK3FegQqgduomqQIIKFilgkdwiHIoOvnesIJxdIPsgvz_7MYWLP0ATrVvK191Ro/s320/cplusplus_small.jpg" alt="" id="BLOGGER_PHOTO_ID_5231486975374836642" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;What is a UNIX Process&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;A &lt;span style="color: rgb(255, 102, 0);"&gt;process &lt;/span&gt;is an instance of a computer program that is being sequentially executed by a computer system that has the ability to run several computer programs concurrently.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Unix Process&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;    An entity that executes a given piece of code, has its own execution stack, its own set of memory pages, its own file descriptors table, and a unique &lt;span style="color: rgb(255, 102, 0);"&gt;process ID&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;The &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;fork()&lt;/span&gt; &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;system call&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;The fork() system call is the basic way to create a new process. It is also a very unique system call, since it returns twice(!) to the caller.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Example: &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:courier new;"&gt;#include &amp;lt;unistd.h&amp;gt;&lt;unistd.h&gt;&lt;br /&gt;&lt;/unistd.h&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;#include &amp;lt;sys/wait.h&amp;gt;&lt;br /&gt;&lt;sys h=""&gt;&lt;/sys&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;pid_t child_pid;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;int child_status;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;" &gt;/* lets fork off a child process... */&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;child_pid = fork();&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;" &gt;/* check what the fork() call actually did */&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;switch (child_pid) {&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    case -1:    &lt;span style="color: rgb(0, 153, 0);"&gt;/* fork() failed */&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    perror("fork");    &lt;span style="color: rgb(0, 153, 0);"&gt;/* print a system-defined error message */&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    exit(1);&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    case 0:    &lt;span style="color: rgb(0, 153, 0);"&gt;/* fork() succeeded, we're inside the child process */&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    printf("Hello, World\n");&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    exit(0);    &lt;span style="color: rgb(0, 153, 0);"&gt;/* here the CHILD process exits, not the parent. */&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    default:    &lt;span style="color: rgb(0, 153, 0);"&gt;/* fork() succeeded, we're inside the parent process */&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    wait(&amp;amp;child_status);    &lt;span style="color: rgb(0, 153, 0);"&gt;/* wait till the child process exits */&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;" &gt;/* parent's process code may continue here... */&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:verdana;" &gt;Notes:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:verdana;" &gt;    * The perror() function prints an error message based on the value of the errno variable, to stderr.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:verdana;" &gt;    * The wait() system call waits until any child process exits, and stores its exit status in the variable supplied. There are a set of macros to check this status, that will be explained in the next section. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2008/08/what-is-unix-process.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9r7HwntgiRLfzjGuqclOaJteyn45RiTCZlE-9rr69J2r1NwWz2MoFhQQXXtNaYnAQPOqlPHRfj8AsEK3FegQqgduomqQIIKFilgkdwiHIoOvnesIJxdIPsgvz_7MYWLP0ATrVvK191Ro/s72-c/cplusplus_small.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-405728651898157747</guid><pubDate>Wed, 06 Aug 2008 15:14:00 +0000</pubDate><atom:updated>2009-01-24T10:46:06.800-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">thread</category><title>Thread  - a thread of execution</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6MvZaFmTinLYk6T5jeM52-mDmaXrRC26Iu_BrcUQJ1sK6HyBs92HwlA5qLwYwTzJ_I1xhg9kEMweRvZ8GIhUDKU2esqCEu-Q31pMP4uixHVgmn67TYlsDRebNPNT5mVKne_iQE1jXrjU/s1600-h/cplusplus_small.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6MvZaFmTinLYk6T5jeM52-mDmaXrRC26Iu_BrcUQJ1sK6HyBs92HwlA5qLwYwTzJ_I1xhg9kEMweRvZ8GIhUDKU2esqCEu-Q31pMP4uixHVgmn67TYlsDRebNPNT5mVKne_iQE1jXrjU/s320/cplusplus_small.jpg" alt="" id="BLOGGER_PHOTO_ID_5231427312681438722" border="0" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;What are threads?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEie1eiurNhbs21ehM2dMcdXUIQD5EXWprm_qTijK1Pm7sjmPcTVg6B8i_pgTf7-ga2eLtQJbAuDT-lZJL0O2iSNOZPu36AYs33ubAmWWidt5RyDT9daOCNM5lBMNnVUxUHpOzwMg2yVw1A/s1600-h/THREAD.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEie1eiurNhbs21ehM2dMcdXUIQD5EXWprm_qTijK1Pm7sjmPcTVg6B8i_pgTf7-ga2eLtQJbAuDT-lZJL0O2iSNOZPu36AYs33ubAmWWidt5RyDT9daOCNM5lBMNnVUxUHpOzwMg2yVw1A/s320/THREAD.jpg" alt="" id="BLOGGER_PHOTO_ID_5231426856616503378" border="0" /&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;A &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Thread_%28computer_science%29"&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;thread &lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;is a sequence of instructions to be executed within&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;a program. Normal &lt;/span&gt;&lt;/span&gt;&lt;a style="font-weight: bold;" href="http://en.wikipedia.org/wiki/Unix"&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;UNIX &lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;processes consist of a single thread&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;of execution that starts in &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Main%28%29"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;main()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;. In other words, each line&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;of your code is executed in turn, exactly one line at a time.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Before threads, the normal way to achieve multiple&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;instruction sequences (ie, doing several things at once, in&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;parallel) was to use the &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Fork_%28operating_system%29"&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;fork()&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; and &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Exec_%28operating_system%29"&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;exec()&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; system calls to&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;create several processes -- each being a single thread of&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;execution.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;In the UNIX operating system, every process has the following:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;   1. a &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Virtual_address_space"&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;virtual address space&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; (ie, stack, data, and code segments)            &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;   2. system resources (eg, open files)            &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;   3. a thread of execution&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;These resources are private to each process; for example, processes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;cannot peek into one another's address space, open and close&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;files for one another, etc.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2008/08/thread-thread-of-execution.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6MvZaFmTinLYk6T5jeM52-mDmaXrRC26Iu_BrcUQJ1sK6HyBs92HwlA5qLwYwTzJ_I1xhg9kEMweRvZ8GIhUDKU2esqCEu-Q31pMP4uixHVgmn67TYlsDRebNPNT5mVKne_iQE1jXrjU/s72-c/cplusplus_small.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-289552499565034303</guid><pubDate>Tue, 05 Aug 2008 05:42:00 +0000</pubDate><atom:updated>2009-01-24T10:49:24.241-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">prg_2</category><title>C++ program - Hello World!</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLhal-WcORH344-VxYQWO7mjMDNHHVj8zpAFERmgmjNrheNuO5oaWE6jST-UC0JuRhsncUvFr0_Nsh5MFx2u9rZd7jqgut5e09RU_o5SQ4Yrz2vGEE2c0C9i94mTE1OsaoLIlPKLxb0T8/s1600-h/cplusplus_small.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLhal-WcORH344-VxYQWO7mjMDNHHVj8zpAFERmgmjNrheNuO5oaWE6jST-UC0JuRhsncUvFr0_Nsh5MFx2u9rZd7jqgut5e09RU_o5SQ4Yrz2vGEE2c0C9i94mTE1OsaoLIlPKLxb0T8/s320/cplusplus_small.jpg" alt="" id="BLOGGER_PHOTO_ID_5230905475009351522" border="0" /&gt;&lt;/a&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=";"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;Program 2. C++ source file—main.cpp&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;stdio.h&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;#include &amp;lt;iostream&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;using namespace std;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;int main()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;   cout &lt;&lt; "Hello World!" &lt;&lt; endl;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span style=";"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span style=";"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;T&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;he &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;main &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;function serves a special purpose in C++ programs:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;* The run-time environment calls the &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;main &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;function to begin&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;program execution.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;* The opening curly brace indicates the beginning of the&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;definition of the &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;main &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;function.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;* To print a value to the screen, write the word &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Cout"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;cout&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;, followed by the insertion operator (&lt;&lt;), which you create by typing the less-than character (&lt;) twice. Even though this is two characters, C++ treats it as one.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;* A commonly-used alternative to the newline character \n is &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Endl"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;endl&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;* The &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Return_statement"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;return &lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;statement terminates the execution of the &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;main&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;function and causes it to return the integer value 0, which is&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;interpreted by the run-time system as an exit code indicating&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;successful execution.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;* The closing curly brace indicates the end of the code for&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;the &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;main &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;function.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;Compiling a single C++ source file: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;The C++ compiler is called &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/G%2B%2B"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;g++&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;g++&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0); "&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;main.cpp&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt; -o &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0); "&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;main.cpp.o&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;Output:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;stdio.h style=""&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style=";"&gt;&lt;span style=";"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmJHOmQzG4x05YoOiQRWSAZS4LSazpK5URTAy6C4Vg630MWFAZaFL5ygIQtlbv5QM3QUU2-Z9nJZ-RiPOtK2FxfygWB2oTjQSb2I6D61B9gMrFOdaCejAyoVIIdTCdGLTaPKF0waKTq5k/s1600-h/PRG_2.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmJHOmQzG4x05YoOiQRWSAZS4LSazpK5URTAy6C4Vg630MWFAZaFL5ygIQtlbv5QM3QUU2-Z9nJZ-RiPOtK2FxfygWB2oTjQSb2I6D61B9gMrFOdaCejAyoVIIdTCdGLTaPKF0waKTq5k/s320/PRG_2.jpg" alt="" id="BLOGGER_PHOTO_ID_5231001940451994450" border="0" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2008/08/c-program-hello-world_04.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLhal-WcORH344-VxYQWO7mjMDNHHVj8zpAFERmgmjNrheNuO5oaWE6jST-UC0JuRhsncUvFr0_Nsh5MFx2u9rZd7jqgut5e09RU_o5SQ4Yrz2vGEE2c0C9i94mTE1OsaoLIlPKLxb0T8/s72-c/cplusplus_small.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-2661725656293682718</guid><pubDate>Mon, 04 Aug 2008 18:51:00 +0000</pubDate><atom:updated>2009-01-24T10:48:25.181-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">prg_1</category><title>Introduction to UNIX programming</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3Bv11YNF4EFfDASMV8rttcUp8UqVunKXXqLSuowkKtmwse7KdMYXT5qLH8l7Q13vsWf0kisaS7rYm340tDRN2KvjN_0g32E5Yo5HiyE_Yy9FK6rmtrubJY6iq5JtnG3z3PU_nvgkozMk/s1600-h/cplusplus.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3Bv11YNF4EFfDASMV8rttcUp8UqVunKXXqLSuowkKtmwse7KdMYXT5qLH8l7Q13vsWf0kisaS7rYm340tDRN2KvjN_0g32E5Yo5HiyE_Yy9FK6rmtrubJY6iq5JtnG3z3PU_nvgkozMk/s320/cplusplus.jpg" alt="" id="BLOGGER_PHOTO_ID_5230728820026877218" border="0" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;T&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;HE BASIC steps required to create a &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/C_programing_language"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;C&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; or &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/C%2B%2B"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;C++&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Linux"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Linux &lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;program.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;* How to create a C and C++ programs on &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Linux"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Linux &lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;environment&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;* Compiling code&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;* &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Debugging"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Debugging &lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;the result&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-family:'trebuchet ms';"&gt;Program 1. C source file—main.c&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=";"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;int main(void)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;printf("\nHello, World\n\n");&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;return 0;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;br /&gt;The &lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;main &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;function serves a special purpose in C programs:&lt;br /&gt;&lt;br /&gt;* The run-time environment calls the &lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;main &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;function to begin&lt;br /&gt;program execution.&lt;br /&gt;&lt;br /&gt;* The opening curly brace indicates the beginning of the&lt;br /&gt;definition of the &lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;main &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;function.&lt;br /&gt;&lt;br /&gt;* A function named &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Printf"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;printf&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;, which was declared in&lt;br /&gt;stdio.h and is supplied from a system &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Library_%28computing%29"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;library&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;br /&gt;* The &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Return_statement"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;return &lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;statement terminates the execution of the main&lt;br /&gt;function and causes it to return the integer value 0, which is&lt;br /&gt;interpreted by the run-time system as an &lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;exit &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;code indicating&lt;br /&gt;successful execution.&lt;br /&gt;&lt;br /&gt;* The closing curly brace indicates the end of the code for&lt;br /&gt;the &lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;main &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;function.&lt;br /&gt;&lt;br /&gt;Compiling a single C source file:&lt;br /&gt;&lt;br /&gt;The C++ compiler is called &lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/G%2B%2B"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;g++&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;.&lt;br /&gt;&lt;br /&gt;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;g++&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;main.c&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; -o &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;main.c.o&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;br /&gt;Output:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;&lt;stdio.h&gt;&lt;stdio.h&gt;&lt;stdio.h&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;/span&gt;&lt;/stdio.h&gt;&lt;/stdio.h&gt;&lt;/stdio.h&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBL5Jjs5tfkyYg3Khcvn9VTxduJI4CgEVm8HGZdr82UmykFcvuJP1I4PfWP1eYc6HXWfcS64v06q-EjcR61vQsX1fDv-4EXCseo-KWYsMcelhmBuzJjlaurA3eX4xDV6uPgzJ8rNOsfwU/s1600-h/PRG_1.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBL5Jjs5tfkyYg3Khcvn9VTxduJI4CgEVm8HGZdr82UmykFcvuJP1I4PfWP1eYc6HXWfcS64v06q-EjcR61vQsX1fDv-4EXCseo-KWYsMcelhmBuzJjlaurA3eX4xDV6uPgzJ8rNOsfwU/s320/PRG_1.jpg" alt="" id="BLOGGER_PHOTO_ID_5231001220300116082" border="0" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;stdio.h&gt;&lt;stdio.h&gt;&lt;stdio.h&gt;&lt;stdio.h&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/stdio.h&gt;&lt;/stdio.h&gt;&lt;/stdio.h&gt;&lt;/stdio.h&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2008/08/c-program-hello-world.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3Bv11YNF4EFfDASMV8rttcUp8UqVunKXXqLSuowkKtmwse7KdMYXT5qLH8l7Q13vsWf0kisaS7rYm340tDRN2KvjN_0g32E5Yo5HiyE_Yy9FK6rmtrubJY6iq5JtnG3z3PU_nvgkozMk/s72-c/cplusplus.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4851999754350716333.post-6686942438660448544</guid><pubDate>Mon, 04 Aug 2008 18:07:00 +0000</pubDate><atom:updated>2008-09-06T04:38:31.676-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">introduction</category><title>My Home town - Kottayam, Kerala, INDIA</title><description>&lt;script type="text/javascript"&gt;&lt;br /&gt;var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");&lt;br /&gt;document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;br /&gt;var pageTracker = _gat._getTracker("UA-5528635-1");&lt;br /&gt;pageTracker._trackPageview();&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;iframe marginheight="0" marginwidth="0" src="http://maps.google.com/?ie=UTF8&amp;amp;ll=9.585263,76.521835&amp;amp;spn=0.05755,0.077248&amp;amp;z=14&amp;amp;output=embed&amp;amp;s=AARTsJqzARj-Z8VnW5pkPMLMmZbqrJcYpw" frameborder="0" height="350" scrolling="no" width="425"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;small&gt;&lt;a href="http://maps.google.com/?ie=UTF8&amp;amp;ll=9.585263,76.521835&amp;amp;spn=0.05755,0.077248&amp;amp;z=14&amp;amp;source=embed" style="color: rgb(0, 0, 255); text-align: left;"&gt;&lt;span style=";font-family:Verdana;font-size:85%;"  &gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;View Larger Map&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/small&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;!-- Begin Shinystat Free code --&gt;&lt;br /&gt;&lt;script type="text/javascript" language="JavaScript" src="http://codice.shinystat.com/cgi-bin/getcod.cgi?USER=nidhishabraham"&gt;&lt;/script&gt;&lt;br /&gt;&lt;noscript&gt;&lt;br /&gt;&lt;a href="http://www.shinystat.com" target="_top"&gt;&lt;br /&gt;&lt;img src="http://www.shinystat.com/cgi-bin/shinystat.cgi?USER=nidhishabraham" alt="Free hit counter" border="0"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/noscript&gt;&lt;br /&gt;&lt;!-- End Shinystat Free code --&gt;&lt;div class="blogger-post-footer"&gt;Welcome to Nidhish Abraham's -  "Tech Talk"&lt;/div&gt;</description><link>http://abrahamnidhish.blogspot.com/2008/08/unix-programming-with-linux.html</link><author>noreply@blogger.com (Nidhish ABRAHAM)</author><thr:total>2</thr:total></item></channel></rss>