Thread: Re: [SSI-devel] Re: [BUG] migrate with threaded application on Al pha
Brought to you by:
brucewalker,
rogertsang
From: Aneesh K. K.V <ane...@di...> - 2003-07-31 12:54:24
|
On Thu, 2003-07-31 at 18:10, KANTHARIA, CHIRAG RAMESHCHANDRA (HP) wrote: > On Thu, Jul 31, 2003 at 05:42:48PM +0530, Aneesh Kumar K.V wrote: > | On Thu, 2003-07-31 at 17:14, Aneesh Kumar K.V wrote: > | > Migration of threaded program using migrate() call gives the below > Oops > | > on Alpha. I am looking into this. > | Ok I guess that was because i coded the test program wrongly. But i > > It would be nice, if we could see the program that caused the oops, if > it's not too big. I am trying to find what mistake i did in the code. As of now the code is not giving oops. BTW i was trying something like below. #include <pthread.h> void * f(void * arg) { printf("node num in thread %d\n",clusternode_num()); if( migrate(atoi(argv[1])) < 0 ) { printf("Failed Migration %d\n",getpid()); } printf("node num in thread %d\n",clusternode_num()); } main(int argc , char *argv[]) { pthread_t tid ; pthread_create(&tid,NULL,f,argv[1]); printf("Hello node num is %d\n",clusternode_num()); } As you can see main exit immediately. -aneesh |