Re: [dev-servo] tasks in servo did not run concurrently

2013-10-14 Thread Brian Anderson
On 10/14/2013 04:16 PM, Brian Anderson wrote: On 10/12/2013 05:01 PM, Lars Bergstrom wrote: This was a great example and great find! After talking with Brian, I've opened Rust issue 9831 (https://github.com/mozilla/rust/issues/9831 ) to track the scheduler changes to make this code work. Wha

Re: [dev-servo] tasks in servo did not run concurrently

2013-10-14 Thread Brian Anderson
On 10/12/2013 05:01 PM, Lars Bergstrom wrote: This was a great example and great find! After talking with Brian, I've opened Rust issue 9831 (https://github.com/mozilla/rust/issues/9831 ) to track the scheduler changes to make this code work. What we can do in Servo right now is to start from

Re: [dev-servo] tasks in servo did not run concurrently

2013-10-14 Thread Brian Anderson
On 10/12/2013 05:01 PM, Lars Bergstrom wrote: This was a great example and great find! After talking with Brian, I've opened Rust issue 9831 (https://github.com/mozilla/rust/issues/9831 ) to track the scheduler changes to make this code work. What we can do in Servo right now is to start from

Re: [dev-servo] tasks in servo did not run concurrently

2013-10-12 Thread Lars Bergstrom
This was a great example and great find! After talking with Brian, I've opened Rust issue 9831 (https://github.com/mozilla/rust/issues/9831 ) to track the scheduler changes to make this code work. What we can do in Servo right now is to start from a normal task instead and spawn the constellati

Re: [dev-servo] tasks in servo did not run concurrently

2013-10-11 Thread Ilyong Cho
FWIW The benchmark that I've done shows that there is no performance win by spawning multiple tasks when top level task was started by `start_on_main_thread()`: https://gist.github.com/ILyoan/6945608 The output of the test implies spawning multi tasks from top level task started on main thread doe

Re: [dev-servo] tasks in servo did not run concurrently

2013-10-11 Thread Lars Bergstrom
On Oct 11, 2013, at 2:55 PM, Brian Anderson wrote: > On 10/11/2013 06:38 AM, Lars Bergstrom wrote: > Unless there is a serious bug in the runtime (always possible), it's true > that only the compositor task should be executing on the main thread, and > every other task will be executing on other

Re: [dev-servo] tasks in servo did not run concurrently

2013-10-11 Thread Brian Anderson
On 10/11/2013 06:38 AM, Lars Bergstrom wrote: All tasks should not be scheduled to run on the main thread: only the toplevel one where the compositor runs. That design ensures the windowing system calls (via glut and glfw) are performed on same system thread where the window was created and th

Re: [dev-servo] tasks in servo did not run concurrently

2013-10-11 Thread Lars Bergstrom
All tasks should not be scheduled to run on the main thread: only the toplevel one where the compositor runs. That design ensures the windowing system calls (via glut and glfw) are performed on same system thread where the window was created and the windowing system was initialized, which is req

[dev-servo] tasks in servo did not run concurrently

2013-10-11 Thread 최영일
Dear all, In order to test some parallel idea, I added a few tasks to layout task in servo however I found that the tasks what I added did not run in concurrently. they run with serialized. It looks to me that all tasks was bounded at single thread and scheduled with std::rt::start_on_main_thr