Pthreads problem in c

micheal john

micheal john

@micheal-john-l1fIn3 Oct 20, 2024
Hi everyone i'm new to programming and i have a project in which i have to use 4 threads to execute 4 methods using pthreads,
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!!!

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Vishal Sharma

    Vishal Sharma

    @vishal-pysGmK May 17, 2013

    micheal john
    Hi everyone i'm new to programming and i have a project in which i have to use 4 threads to execute 4 methods using pthreads,
    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!!!
    Do you already have experience in threaded programming in C?
    If not, I'd like you to go through #-Link-Snipped-#

    I hope it helps you solving your problem. Still, if you face any further problems, feel free to post!
  • micheal john

    micheal john

    @micheal-john-l1fIn3 May 17, 2013

    Thanks bro it really helped me.