1:1 threading.

Terry Lambert tlambert2 at mindspring.com
Fri Mar 28 20:46:33 PST 2003


"Daniel C. Sobral" wrote:
> David Xu wrote:
> > do you think that a multithreaded process should use more CPU time then
> > a single thread process, so threaded process should have higher priority
> > and block other single thread processes out? AFAIK, threading is not
> > designed for this, you may misunderstand what threading is designed for.
> 
> Threading might not have been originally designed for this, but a lot of
> people use it this way, a lot of people *want* it this way, and POSIX
> specifically mandates that this way be available.
> 
> So let's drop that issue, please.

A side question...

Is there an administrative limit on the number of threads that
you can create in a process, such that the total number is
limited to the number of processes you are administratively
limited to creating?

I.e., the administrative limit on number of child processes is
implicitly an administrative limit on how much quantum you can
use; is the limit still enforced on threads, as well?

-- Terry


More information about the freebsd-arch mailing list