On Wed, Nov 13, 2013 at 2:24 PM, Florian Weimer <f...@deneb.enyo.de> wrote:
> * Daniel Micay:
>
>> Rust's tasks are often called *lightweight* but at least on Linux the only
>> optimization is the lack of preemption. Since segmented stacks have been
>> dropped, the resident/virtual memory usage will be identical.
>
> Doesn't the lack of a corresponding kernel thread save something on
> the kernel side?
>
> In the C benchmark, the thread attribute should be created outside the
> loop.

The scheduler resources necessary for a thread are insignificant due
to the ~8K RES (4K in userland, 4K overhead) and 8M VIRT required for
the stack. Linux/FreeBSD are also fully capable of scheduling a very
large number threads.
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to