Question on creation of Thread pool

dear sir/madam
presently i am in a process of creating a multithread pool using

clone() system call in unix with c programming.
i am facing some problem ie., i am able create multithread pool and

able to keep all the threads in wait state,but when i call kill

(afunction revoke a thread after stopping it through raise

function) all the threads in the pool are revoking instead of only

one.In order to make only single thread to invoke and keep the

rest in wait condition i need to set a flag in clone system call

but i am unable to find that flag.I tried it with all flags that i

got in man and internet but i could not get it.so can anyone send

me the code for the same?

Thanks
Radha

dear sir/madam
presently i am in a process of creating a multithread pool using

clone() system call in unix with c programming.
i am facing some problem ie., i am able create multithread pool and

able to keep all the threads in wait state,but when i call kill

(afunction revoke a thread after stopping it through raise

function) all the threads in the pool are revoking instead of only

one.In order to make only single thread to invoke and keep the

rest in wait condition i need to set a flag in clone system call

but i am unable to find that flag.I tried it with all flags that i

got in man and internet but i could not get it.so can anyone send

me the code for the same?

Thanks
Radha

dear sir/madam
presently i am in a process of creating a multithread pool using

clone() system call in unix with c programming.
i am facing some problem ie., i am able create multithread pool and

able to keep all the threads in wait state,but when i call kill

(afunction revoke a thread after stopping it through raise

function) all the threads in the pool are revoking instead of only

one.In order to make only single thread to invoke and keep the

rest in wait condition i need to set a flag in clone system call

but i am unable to find that flag.I tried it with all flags that i

got in man and internet but i could not get it.so can anyone send

me the code for the same?

Thanks
Radha

dear sir/madam
presently i am in a process of creating a multithread pool using

clone() system call in unix with c programming.
i am facing some problem ie., i am able create multithread pool and

able to keep all the threads in wait state,but when i call kill

(afunction revoke a thread after stopping it through raise

function) all the threads in the pool are revoking instead of only

one.In order to make only single thread to invoke and keep the

rest in wait condition i need to set a flag in clone system call

but i am unable to find that flag.I tried it with all flags that i

got in man and internet but i could not get it.so can anyone send

me the code for the same?

Thanks
Radha

Please be aware of the rules - Simple rules of the UNIX.COM forums:

(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post or send a private message where your goal is to get an answer more quickly.

Have patience. Some member will have an answer. Also, if you can please post the code that you have at the moment.

Are you sure? You are more likely using clone() on Linux which is not Unix.

I suggest instead of using Linux's clone() you use pthread_create, you will end up with a much more portable solution.

signals may affect all of the threads in a process... and as noted above, clone doesn't really make a thread, pthread_create does. clone is used as a step in creating threads on the Linux platform, where threads are more akin processes.