On 07/22/10 11:47 AM, Sebastien Roy wrote:
On 07/22/10 02:31 PM, Jose wrote:

If a dynamic task queue is created using taskq_create_proc() are the
threads created (as required by the workload) attached to the process
passed in at creation?

They appear to be lwp's associated with the process in question.
taskq_create_common() (called by taskq_create_proc()) sets tq_proc to
point to the proc_t passed in, and taskq_thread_create() does the
following (common/os/taskq.c):

if (tq->tq_proc != &p0) {
t = lwp_kernel_create(tq->tq_proc, taskq_thread, tq, TS_RUN,
tq->tq_pri);
} else {
t = thread_create(NULL, 0, taskq_thread, tq, 0, &p0, TS_RUN,
tq->tq_pri);
}

I saw that but the entry point provided is 'taskq_thread' not 'taskq_d_thread' which I understand is the entry point for the dynamic task queue threads. I didn't find any call to lwp_kernel_create() using tq->tq_proc and taskq_d_thread.

- Jose
_______________________________________________
on-discuss mailing list
on-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/on-discuss

Reply via email to