Hi all,

 

I am trying to create a process with multiple reentrant threads like
such:

 

void * thrd1 (void* b)

{

      do{

            //something...

}

while(1);

}

 

void * thrd2 (void * c)

{

      while(1)

{

      //do something else..

}

}

 

And, I also want to suspend, resume, reset, and sleep my pthreads
whenever I want. As for the sleep, I am more looking for to the
functionally of only suspend the current thread for the defined amount
to time and not pause the whole process execution like sleep() does.
Now, I know Solaris has thr_suspend() and thr_continue() that seems to
solve 2 of my problems.  But, I couldn't find the equivalent functions
in pthread let alone all other ones and I couldn't #include <thread.h>
in my code.

 

Do you guys have any ideas on these functions? Thanks.

 

= Bohao She =

 

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to