Pthreads problem in c
let m1, m2, m3, m4 be the methods and q1, q2, q3 be the queues, i should pass q1 from m1 to m2
and pass q2 from m2 to m3 and q3 from m3 to m4.
how to do these using pthreads, program should execute in m1->m2->m3->m4.
please help me!!!