Re: [algogeeks] Re: posix threads

2011-05-30 Thread jagannath prasad das
@anshu:thats means you say that pthreads are either kernel -level or hybrid in nature @lalit:mapping dependsfor user-level kernel isn't aware of threads,m-m is for kernel-level ,m-n for hybrid kinda does anbody knows whether pthreads are user-level or

Re: [algogeeks] Re: posix threads

2011-05-29 Thread anshu mishra
write these three lines in ur function, it will bind that particular thread to (id)th processor wher void func(int id) { unsigned long mask; mask = 1id; pthread_setaffinity_np(pthread_self(), sizeof(mask), mask); } main() { pthread_t *thread; thread =

Re: [algogeeks] Re: posix threads

2011-05-29 Thread anshu mishra
PS dont forget to bind ith thread with ith processor -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to