On Mon, 2002-12-16 at 13:15, Lalit Kumar Bhasin wrote:
> Hi,
>  
>  Using Linux threads / pthreads, is there any way of controlling the order of thread 
>execution.
>  Suppose u have T1,T2,T3. The order should be (say),
> 
> T1T2T1T2T1T2T3T1T2T1T2T1T2T1T2T3......
> 
> Dont tell me thru the 'condition' variable, as it does not controls the order, which 
>is the prerogative of the scheduler.
> 

Use locks such as mutexes or semaphores

          ================================================
To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject 
header. Check archives at http://www.mail-archive.com/ilugd%40wpaa.org

Reply via email to