[LCP]Help in Threads

Vincent Penquerc'h Vincent.Penquerch at artworks.co.uk
Wed Nov 20 18:14:01 UTC 2002


> first thread is executed completely and then control comes to second 
> thread. But i want control to switch from first thread to 
> second thread as
> soon as first one starts pinging.

Have you tried making the first thread sleep ? eg select on a
socket, or something that should flag it as non runnable to the
scheduler.

-- 
Vincent Penquerc'h 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux.org.au/pipermail/linuxcprogramming/attachments/20021120/efea4b69/attachment.htm 


More information about the linuxCprogramming mailing list