<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>RE: [LCP]Help in Threads</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>&gt; first thread is executed completely and then control comes to second </FONT>
<BR><FONT SIZE=2>&gt; thread. But i want control to switch from first thread to </FONT>
<BR><FONT SIZE=2>&gt; second thread as</FONT>
<BR><FONT SIZE=2>&gt; soon as first one starts pinging.</FONT>
</P>

<P><FONT SIZE=2>Have you tried making the first thread sleep ? eg select on a</FONT>
<BR><FONT SIZE=2>socket, or something that should flag it as non runnable to the</FONT>
<BR><FONT SIZE=2>scheduler.</FONT>
</P>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Vincent Penquerc'h </FONT>
</P>

</BODY>
</HTML>