Posted by: thapap October 24, 2006
Java Programming Help
Login in to Rate this Post:     0       ?        
nas, 2 questions to you. 1. void* mmult (void* slice) what r ya trying to do here? mmult(void) means that you cannot pass any arguments. or am i getting it wrong? and then you case the so called argument into (int). does java allow passing void argument and then accepting and casting .. hmm.. sth new for me. there 2. for (i=1; i if (pthread_create (&thread[i], NULL, mmult, (void*)i) != 0 ) for needs 3 limits. start, range and end. i only see two. pthread_create takes 4 arguments; either i see only 3 or if you call mmult as one argument then your code would not even compile if it does then then the slice is some garbage in the register. i cannot even comprehend how this code would run let alone compile. ===================================================== as always what do i know (O:
Read Full Discussion Thread for this article