From: Sylvain Joyeux Date: 2007-08-10T15:31:42+09:00 Subject: Re: priorities of newly-created threads On Friday 10 August 2007, David Flanagan wrote: > More specifically, this is the patch to thread_create_core I propose. > > David > > --- thread.c~ 2007-07-24 23:30:39.000000000 -0700 > +++ thread.c 2007-08-09 22:11:46.000000000 -0700 > @@ -350,6 +350,8 @@ > th->first_func = fn; > th->first_func_arg = arg; > > + th->priority = GET_THREAD()->priority; > + > native_mutex_initialize(&th->interrupt_lock); > /* kick thread */ > st_insert(th->vm->living_threads, thval, (st_data_t) > th->thread_id); I tend to disagree on that. I was very surprised when I saw that priority inheritance was the default behaviour in Ruby. posix threads, for instance, do not inherit priority by default. -- Sylvain Joyeux