<div>Hi,</div>
<div> </div>
<div>If you are using iguana you can try creating your threads with the thread_create_simple function which receives priority as it's third argument, what are the priorities shown at KDB? </div>
<div> </div>
<div>Cheers,</div><span class="sg">
<div> </div>
<div>Jorge </div>
<div> </div></span><br><br>
<div><span class="gmail_quote">On 11/5/07, <b class="gmail_sendername">Choi, SuGil</b> <<a href="mailto:sooguri@etri.re.kr">sooguri@etri.re.kr</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="FONT-SIZE: 10pt; FONT-FAMILY: System">
<div>A thread is created by calling function "kernel_thread()".</div>
<div> </div>
<div>I think the thread created as above is different from L4 thread.</div>
<div> </div>
<div>Three client threads are created by calling "kernel thread()".</div>
<div> </div>
<div><span class="q"> ---------- client thread -------- ---------- server thread -----------
<p> printf(" before L4_Send "); while(1)<br> {<br> L4_send(server thread ID); L4_Wait(&client)
<br> <br> printf(" after L4_Send "); printf(" message from client was received ");<br> <br> function_A();
</p>
<p> }</p>
<p> ---------- client thread -------- ---------- server thread -----------</p>
<p> </p></span>
<p>server thread is L4 thread.</p>
<p> </p>
<p>When first client thread sends message to server and function_A never returns, the other two threads</p>
<p> </p>
<p>don't have the chance of running.</p>
<p> </p>
<p>You pointed that this problem might be due to the priority of threads.</p>
<p> </p>
<p>The priority of server thread is 200. </p>
<p> </p>
<p>In order to run the client threads and server thread concurrently, the priority of client threads should be 200.</p>
<p> </p>
<p>How can I set the priority of the client thread?</p></div>
<div> </div>
<div><span class="q"><br>-----?? ???-----<br><b>From:</b> "Hal Ashburner" <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:hala@ok-labs.com" target="_blank">hala@ok-labs.com</a>><br>
</span><b>From Date:</b> 2007-11-05 ?? 1:45:10<span class="q"><br><b>To:</b> "Choi, SuGil" <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sooguri@etri.re.kr" target="_blank">sooguri@etri.re.kr
</a>><br></span><b>Cc:</b> "developer" <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:developer@okl4.org" target="_blank">developer@okl4.org</a>><br><b>Subject:</b> RE: Re: [okl4-developer] L4_Send and L4_Wait
<br><br> </div>
<div><span class="e" id="q_1160e6633fbcf0d8_7">
<div><br><br>
<p><font size="2">On Fri, 2007-11-02 at 17:01 +0900, Choi, SuGil wrote:<br>> <br>> Thanks for your help.<br>> <br>> The client thread is created in wombat linux kernel.<br>> <br>> How can I find out the priority of the client thread?
<br><br>Break into the kernel by issuing "Ctrl + K" in the console to get to the<br>L4 kernel debugger.<br>"?" will show you all the options, the one you want is "q"<br>which lists the current threads.
<br>The L4 threads in the linux kernel are "L_syscall" and "L_timer"<br><br><br>> In addition, is the thread created in wombat kernel L4 thread?<br><br>What precisely do you mean when you say "thread created"
<br>What is the code you are using to create a thread?<br><br><br><br>> SuGil.<br>><br>> -----?? ???-----<br>> From: "Hal Ashburner" <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:hala@ok-labs.com" target="_blank">
hala@ok-labs.com</a>><br>> From Date: 2007-11-02 ?? 4:02:47<br>> To: "Choi, SuGil" <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sooguri@etri.re.kr" target="_blank">sooguri@etri.re.kr
</a>><br>> Cc: "<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:developer@okl4.org" target="_blank">developer@okl4.org</a>" <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:developer@okl4.org" target="_blank">
developer@okl4.org</a>><br>> Subject: Re: [okl4-developer] L4_Send and L4_Wait<br>><br>><br>><br>><br>> On Fri, 2007-11-02 at 15:38 +0900, Choi, SuGil wrote:<br>> > Hi,<br>> ><br>> >
<br>> ><br>> > I have difficulty in testing client server program.<br>> ><br>> ><br>><br>> <snip><br>><br>> ><br>> > When the function_A never returns (infinite loop), L4_Send is
<br>> blocking<br>> > indefinitely<br>> ><br>> ><br>><br>> ><br>> > I want that the client thread can run as long as the sent message<br>> is<br>> > received by the server<br>
> ><br>> ><br>> ><br>> > even if the function_A never returns. Could you please tell me what<br>> I<br>> > have to do more.<br>> ><br>><br>> ><br>> Hi SuGil.<br>> Are the two threads the same priority?
<br>> The behaviour you are seeing would be consistent with the thread<br>> running<br>> function_A being of a higher priority than the sending thread.<br>><br>> Hope this helps.<br>><br>> --<br>> Kind regards,
<br>> Hal Ashburner<br>><br>><br>><br>><br>><br>--<br>Kind regards,<br>Hal Ashburner<br><br></font></p></div></span></div></div><img height="0" width="0"><br>_______________________________________________
<br>Developer mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Developer@okl4.org">Developer@okl4.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.okl4.org/mailman/listinfo/developer" target="_blank">
https://lists.okl4.org/mailman/listinfo/developer</a><br><br></blockquote></div><br>