> Another question: is it possible to create a poll of real thread (around
> 100) and each real thread manage around 50 state thread?
> can we mix system threads and state threads without problem?
I can answer this one. No, you can't mix system (POSIX-, solaris-,
linux-, etc.) threads with state threads. The ST library was designed
to use process as the only "kernel execution vehicle" (many-to-one
model). To take advantage of multiple CPUs you should create multiple
processes.
Why do you need such a large pool of "real" threads? Do you do a lot
of disk I/O?
Regards,
Gene
|