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

<channel>
	<title>EmbLogic &#187; Sukhminder Singh</title>
	<atom:link href="https://www.emblogic.com/blog/author/ss-sukkhi/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>BINARY SEARCH&#8230;&#8230;..</title>
		<link>https://www.emblogic.com/blog/10/binary-search/</link>
		<comments>https://www.emblogic.com/blog/10/binary-search/#comments</comments>
		<pubDate>Sun, 19 Oct 2014 07:34:12 +0000</pubDate>
		<dc:creator><![CDATA[Sukhminder Singh]]></dc:creator>
				<category><![CDATA[Data Structures with C]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11614</guid>
		<description><![CDATA[Binary search technique works for the sorted list. It is one of the most efficient techniques of searching. It is a technique of searching in ordered list where we first find middle value. Based on the comparison between the middle &#8230; <a href="https://www.emblogic.com/blog/10/binary-search/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<ol>
<li>Binary search technique works for the sorted list.</li>
<li>It is one of the most efficient techniques of searching.</li>
<li>It is a technique of searching in ordered list where we first find middle value.</li>
<li>Based on the comparison between the middle value and key vaue(to be searched) half of the data is discarded.</li>
<li>Most of the dictionary apps uses this techique.</li>
<li style="text-align: left">It is costly to do linear search to find information on internet,so here also binary seach technique is used.</li>
</ol>
<p><strong>ALGORITHM:</strong></p>
<ul>
<li><strong>B_search(key,n,array)</strong></li>
</ul>
<p>where</p>
<ol>
<li>key-&gt;value to be searched.</li>
<li>n-&gt;number of elements.</li>
<li>array-&gt;list of elements.</li>
</ol>
<p><strong>STEPS:</strong></p>
<ol>
<li>Initialize</li>
</ol>
<p>low=1; high=n; flag=0;</p>
<p>2.Repeat 3&amp;4</p>
<p>3.while(low&lt;high)</p>
<p>mid=(low+high)/2</p>
<p>4.if(key&lt;array[mid])</p>
<p>then high=mid-1</p>
<p>elseif (key&gt;array[mid])</p>
<p>then low=mid+1;</p>
<p>elseif (key==array[mid])</p>
<p>then flag=1 &amp; search successful;;;;;</p>
<p>5. if(flag!=1) ERROR !!!!!</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/10/binary-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Algo for creating threads&#8230;&#8230;&#8230;</title>
		<link>https://www.emblogic.com/blog/10/algo-for-creating-threads/</link>
		<comments>https://www.emblogic.com/blog/10/algo-for-creating-threads/#comments</comments>
		<pubDate>Mon, 06 Oct 2014 05:57:17 +0000</pubDate>
		<dc:creator><![CDATA[Sukhminder Singh]]></dc:creator>
				<category><![CDATA[Project 04: FTP based Client Server using Threads and Sockets]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11552</guid>
		<description><![CDATA[1)In the main,declare a pthread_t type variable. 2)Create a thread using pthread_create. prototype:pthread_create(pthread_t*,attributes,void*(function pointer),void*(argument to be passed)); //attributes=0:::if not used 3)Make a function of return type void *; 4)This function would be called as soon as the thread is created. &#8230; <a href="https://www.emblogic.com/blog/10/algo-for-creating-threads/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>1)In the main,declare a pthread_t type variable.</p>
<p>2)Create a thread using pthread_create.</p>
<p>prototype:pthread_create(pthread_t*,attributes,void*(function pointer),void*(argument to be passed)); //attributes=0:::if not used</p>
<p>3)Make a function of return type void *;</p>
<p>4)This function would be called as soon as the thread is created.</p>
<p>5)Use pthread_exit() at the end of this function.</p>
<p>6)In the main function use pthread_join,so that the main program waits till the exit value is not captured from pthread_exit();</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/10/algo-for-creating-threads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rcs of driver initialization&#8230;&#8230;.</title>
		<link>https://www.emblogic.com/blog/10/rcs-for-driver-initialization/</link>
		<comments>https://www.emblogic.com/blog/10/rcs-for-driver-initialization/#comments</comments>
		<pubDate>Sun, 05 Oct 2014 10:47:01 +0000</pubDate>
		<dc:creator><![CDATA[Sukhminder Singh]]></dc:creator>
				<category><![CDATA[Character Driver]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11548</guid>
		<description><![CDATA[head    1.19; 2 access; 3 symbols; 4 locks 5         root:1.19; strict; 6 comment @ * @; 7 8 9 1.19 10 date    2014.10.05.10.38.59;    author root;    state Exp; 11 branches; 12 next    1.18; 13 14 1.18 15 date    2014.10.05.10.38.24;    author root;    &#8230; <a href="https://www.emblogic.com/blog/10/rcs-for-driver-initialization/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>head    1.19;<br />
2 access;<br />
3 symbols;<br />
4 locks<br />
5         root:1.19; strict;<br />
6 comment @ * @;<br />
7<br />
8<br />
9 1.19<br />
10 date    2014.10.05.10.38.59;    author root;    state Exp;<br />
11 branches;<br />
12 next    1.18;<br />
13<br />
14 1.18<br />
15 date    2014.10.05.10.38.24;    author root;    state Exp;<br />
16 branches;<br />
17 next    1.17;<br />
18<br />
19 1.17<br />
20 date    2014.10.03.14.07.19;    author root;    state Exp;<br />
21 branches;<br />
22 next    1.16;<br />
23<br />
24 1.16<br />
25 date    2014.10.03.10.29.04;    author root;    state Exp;<br />
26 branches;<br />
27 next    1.15;<br />
28<br />
29 1.15<br />
30 date    2014.10.03.10.28.00;    author root;    state Exp;<br />
31 branches;<br />
32 next    1.14;<br />
33<br />
34 1.14<br />
35 date    2014.10.03.10.17.44;    author root;    state Exp;<br />
36 branches;<br />
next    1.13;<br />
38<br />
39 1.13<br />
40 date    2014.10.03.10.17.14;    author root;    state Exp;<br />
41 branches;<br />
42 next    1.12;<br />
43<br />
44 1.12<br />
45 date    2014.10.03.10.16.34;    author root;    state Exp;<br />
46 branches;<br />
47 next    1.11;<br />
48<br />
49 1.11<br />
50 date    2014.10.03.10.12.52;    author root;    state Exp;<br />
51 branches;<br />
52 next    1.10;<br />
53<br />
54 1.10<br />
55 date    2014.10.03.10.11.46;    author root;    state Exp;<br />
56 branches;<br />
57 next    1.9;<br />
58<br />
59 1.9<br />
60 date    2014.10.03.10.10.49;    author root;    state Exp;<br />
61 branches;<br />
62 next    1.8;<br />
63<br />
64 1.8<br />
65 date    2014.10.03.10.09.50;    author root;    state Exp;<br />
66 branches;<br />
67 next    1.7;<br />
68</p>
<p>1.7<br />
70 date    2014.10.03.10.09.09;    author root;    state Exp;<br />
71 branches;<br />
72 next    1.6;<br />
73<br />
74 1.6<br />
75 date    2014.10.03.09.58.22;    author root;    state Exp;<br />
76 branches;<br />
77 next    1.5;<br />
78<br />
79 1.5<br />
80 date    2014.10.03.09.55.51;    author root;    state Exp;<br />
81 branches;<br />
82 next    1.4;<br />
83<br />
84 1.4<br />
85 date    2014.10.01.17.22.31;    author root;    state Exp;<br />
86 branches;<br />
87 next    1.3;<br />
88<br />
89 1.3<br />
90 date    2014.10.01.17.19.02;    author root;    state Exp;<br />
91 branches;<br />
92 next    1.2;<br />
93<br />
94 1.2<br />
95 date    2014.10.01.17.03.37;    author root;    state Exp;<br />
96 branches;<br />
97 next    1.1;<br />
98<br />
99 1.1<br />
100 date    2014.09.29.07.25.13;    author root;    state Exp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/10/rcs-for-driver-initialization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rcs of sever program in IPC&#8230;&#8230;</title>
		<link>https://www.emblogic.com/blog/08/rcs-of-sever-program-in-ipc/</link>
		<comments>https://www.emblogic.com/blog/08/rcs-of-sever-program-in-ipc/#comments</comments>
		<pubDate>Thu, 07 Aug 2014 17:33:16 +0000</pubDate>
		<dc:creator><![CDATA[Sukhminder Singh]]></dc:creator>
				<category><![CDATA[Project 03: Client Server Communication using Linux and IPC]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11369</guid>
		<description><![CDATA[RCS file: ./server.c,v 3 Working file: ./server.c 4 head: 1.200 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 200;   selected revisions: 200 11 description: 12 This is the server program &#8230; <a href="https://www.emblogic.com/blog/08/rcs-of-sever-program-in-ipc/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: ./server.c,v<br />
3 Working file: ./server.c<br />
4 head: 1.200<br />
5 branch:<br />
6 locks: strict<br />
7 access list:<br />
8 symbolic names:<br />
9 keyword substitution: kv<br />
10 total revisions: 200;   selected revisions: 200<br />
11 description:<br />
12 This is the server program<br />
13 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
14 revision 1.200<br />
15 date: 2014/08/07 17:16:57;  author: root;  state: Exp;  lines: +1 -1<br />
16 *** empty log message ***<br />
17 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
18 revision 1.199<br />
19 date: 2014/08/07 17:14:26;  author: root;  state: Exp;  lines: +1 -1<br />
20 *** empty log message ***<br />
21 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
22 revision 1.198<br />
23 date: 2014/08/07 13:26:41;  author: root;  state: Exp;  lines: +1 -1<br />
24 *** empty log message ***<br />
25 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
26 revision 1.197<br />
27 date: 2014/08/07 13:25:37;  author: root;  state: Exp;  lines: +1 -8<br />
28 *** empty log message ***<br />
29 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
30 revision 1.196<br />
31 date: 2014/08/07 13:24:14;  author: root;  state: Exp;  lines: +6 -10<br />
32 *** empty log message ***<br />
33 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
34 revision 1.195<br />
date: 2014/08/07 13:16:16;  author: root;  state: Exp;  lines: +4 -10<br />
36 *** empty log message ***<br />
37 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
38 revision 1.194<br />
39 date: 2014/08/07 13:13:41;  author: root;  state: Exp;  lines: +4 -1<br />
40 *** empty log message ***<br />
41 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
42 revision 1.193<br />
43 date: 2014/08/07 13:11:46;  author: root;  state: Exp;  lines: +1 -1<br />
44 *** empty log message ***<br />
45 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
46 revision 1.192<br />
47 date: 2014/08/07 13:10:45;  author: root;  state: Exp;  lines: +2 -2<br />
48 *** empty log message ***<br />
49 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
50 revision 1.191<br />
51 date: 2014/08/07 13:06:29;  author: root;  state: Exp;  lines: +1 -1<br />
52 *** empty log message ***<br />
53 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
54 revision 1.190<br />
55 date: 2014/08/07 13:05:32;  author: root;  state: Exp;  lines: +5 -1<br />
revision 1.189<br />
59 date: 2014/08/07 11:47:19;  author: root;  state: Exp;  lines: +3 -9<br />
60 *** empty log message ***<br />
61 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
62 revision 1.188<br />
63 date: 2014/08/07 11:44:38;  author: root;  state: Exp;  lines: +3 -2<br />
64 *** empty log message ***<br />
65 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
66 revision 1.187<br />
67 date: 2014/08/07 11:42:51;  author: root;  state: Exp;  lines: +3 -2<br />
68 *** empty log message ***<br />
69 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
70 revision 1.186<br />
71 date: 2014/08/07 11:41:09;  author: root;  state: Exp;  lines: +5 -1<br />
72 *** empty log message ***<br />
73 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
74 revision 1.185<br />
75 date: 2014/08/07 11:39:10;  author: root;  state: Exp;  lines: +1 -1<br />
76 *** empty log message ***<br />
77 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
78 revision 1.184<br />
79 date: 2014/08/07 11:38:44;  author: root;  state: Exp;  lines: +1 -1<br />
*** empty log message ***<br />
81 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
82 revision 1.183<br />
83 date: 2014/08/07 11:36:52;  author: root;  state: Exp;  lines: +2 -1<br />
84 *** empty log message ***<br />
85 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
86 revision 1.182<br />
87 date: 2014/08/07 11:35:30;  author: root;  state: Exp;  lines: +1 -1<br />
88 *** empty log message ***<br />
89 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
90 revision 1.181<br />
91 date: 2014/08/07 11:34:31;  author: root;  state: Exp;  lines: +1 -1<br />
92 *** empty log message ***<br />
93 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
94 revision 1.180<br />
95 date: 2014/08/07 11:34:07;  author: root;  state: Exp;  lines: +1 -1<br />
96 *** empty log message ***<br />
97 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
98 revision 1.179<br />
99 date: 2014/08/07 11:33:36;  author: root;  state: Exp;  lines: +1 -1<br />
100 *** empty log message ***<br />
101 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
102 revision 1.178<br />
.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.<br />
evision 1.5<br />
795 date: 2014/08/04 17:46:40;  author: root;  state: Exp;  lines: +1 -1<br />
796 *** empty log message ***<br />
797 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
798 revision 1.4<br />
799 date: 2014/08/04 17:43:32;  author: root;  state: Exp;  lines: +2 -2<br />
800 *** empty log message ***<br />
801 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
802 revision 1.3<br />
803 date: 2014/08/04 17:40:14;  author: root;  state: Exp;  lines: +1 -1<br />
804 *** empty log message ***<br />
805 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
806 revision 1.2<br />
807 date: 2014/08/04 17:39:37;  author: root;  state: Exp;  lines: +2 -2<br />
808 *** empty log message ***<br />
809 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
810 revision 1.1<br />
811 date: 2014/08/04 17:37:48;  author: root;  state: Exp;<br />
812 Initial revision<br />
813 ============================================================================</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/08/rcs-of-sever-program-in-ipc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
