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);
}
-Seb
_______________________________________________
on-discuss mailing list
on-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/on-discuss