Lisp HUG Maillist Archive

RE: What is the relationship between LW process priorities and operating system thread priorities?

 

> -----Original Message-----
> From: owner-lisp-hug@lispworks.com 
> [mailto:owner-lisp-hug@lispworks.com] On Behalf Of Martin Simmons
> Sent: Thursday, August 31, 2006 9:34 PM
> To: lisp-hug@lispworks.com
> Subject: Re: What is the relationship between LW process 
> priorities and operating system thread priorities?
> 
> 
> >>>>> On Thu, 31 Aug 2006 14:10:14 +0200, Eivind Midtgard said:
> > 
> > LWW 4.4.6 or LWW 5.0
> > 
> > What is the relationship between the LW thread priorities, and the 
> > Windows thread priorities?
> > Is there anything I should/can do to ensure the Lisp 
> threads are not 
> > preempted by the C++ threads?
> 
> LispWorks sets the Windows thread priority level according to 
> the value of MP:PROCESS-PRIORITY.
> 
> Below 0, it is set to THREAD_PRIORITY_LOWEST.
> 
> Between 0 and 500000, it is set to THREAD_PRIORITY_BELOW_NORMAL.
> 
> Above 500000, it is set to THREAD_PRIORITY_NORMAL.

Thank you, that explains it. All my Lisp threads (processes) were created with default priority, 0, which means they all had lower priority than my C++ threads. I just tried changing it, and now my Lisp threads are much faster. 


Is there any way of setting THREAD_PRIORITY_ABOVE_NORMAL (except using the FFI)?


-- 
Eivind


Re: What is the relationship between LW process priorities and operating system thread priorities?

Unable to parse email body. Email id is 5837

Updated at: 2020-12-10 08:47 UTC