zhshqzyc
February 16th, 2006, 04:00 PM
I am doing a matrix multiplication with thread.How to transfer the argument with a structure.
pthread_create(.......)
pthread_create(.......)
|
Click to See Complete Forum and Search --> : Thread Argument Passing zhshqzyc February 16th, 2006, 04:00 PM I am doing a matrix multiplication with thread.How to transfer the argument with a structure. pthread_create(.......) Rigel February 16th, 2006, 04:32 PM How to create a worker thread? (http://www.codeguru.com/forum/showthread.php?p=1023485#post1023485) cilu February 16th, 2006, 05:21 PM How to create a worker thread? (http://www.codeguru.com/forum/showthread.php?p=1023485#post1023485) I don't think that link is useful in this particular case. Documentation: http://www.opengroup.org/onlinepubs/007908799/xsh/pthread_create.html http://www.mkssoftware.com/docs/man3/pthread_create.3.asp Example: http://users.actcom.co.il/~choo/lupg/tutorials/multi-thread/pthread_create.c Rigel February 16th, 2006, 06:00 PM I don't think that link is useful in this particular case. Yeah that is true... :o shahin February 16th, 2006, 06:30 PM My question is very simmilar to the above and I am wondering on how and how many arguments I can pass to a function. For example, I am using _beginthread to start my threads and in each thread I want to call a function which has the following protoype: int func ( int a, char * b, double c) { ...... } What does my _beginthread function call should look like ??!!! Also, Can you please give me a link to a tutorial on threading on both C and C++ which you think is good. Thank u humble_learner February 17th, 2006, 01:15 AM How about creating a structure of arguments that you want to pass and pass the address in the beginthread() call. I think the same point is mentioned in the following link- http://www.daniweb.com/techtalkforums/nextoldesttothread39555.html shahin February 17th, 2006, 01:03 PM yes, thank you very much :) I thought I should do that as well :) Marc G February 17th, 2006, 01:22 PM [ moved thread ] codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |