creating a pthread

J

JS

I have an incomplete pthread_create function that looks like this:

pthread_create(pthread * thread, pthread_attr_t *attr, void *
(*start_routine)(void *), void *arg){

}

The third parameter is where my new thread will start to execute:

void * start_routine(void *param){

}


my questions is:

Will the fourth parameter (void * arg) be the parameter send to the
start_routine function??

JS
 
K

Keith Thompson

JS said:
I have an incomplete pthread_create function that looks like this:
[snip]

Standard C, which is what we discuss here, has no support for threads.
Try comp.programming.threads.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,800
Messages
2,569,656
Members
45,399
Latest member
JettTancre
Top