[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] win32 priority
- To: sc-dev@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-dev] win32 priority
- From: Tim Blechmann <tim@xxxxxxxxxx>
- Date: Fri, 28 Dec 2012 12:24:02 +0100
- Cc: Victor Bombi <sonoro@xxxxxxxxxxxxxx>
- In-reply-to: <BB83218193FC4D5FACFE318FAB1CD9B3@victorPortatil>
- List-id: SuperCollider developers mailing list <sc-devel.create.ucsb.edu>
- References: <4D1D63C0EC2D47AC9E447E3A879B2E5C@victorPortatil> <D59151AAE3A448A586BD4A758DDB2403@victorPortatil> <A653CBCD518742F0A0D59977D4B28C53@victorPortatil> <BB83218193FC4D5FACFE318FAB1CD9B3@victorPortatil>
- Reply-to: sc-dev@xxxxxxxxxxxxxxxx
- Sender: owner-sc-dev@xxxxxxxxxxxxxxxx
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0
hi victor,
thanks for your insights ... didn't realize that the priority class is
process-wide ... different on unixy platforms, where SCHED_FIFO/SCHED_RR
are real-time scheduling policies, while SCHED_OTHER is the default
non-rt policy.
the idea is thread_set_priority should set a non-rt priority, while
thread_set_priority_rt acquires real-time scheduling. maybe the
intervals for non-rt should be [THREAD_PRIORITY_IDLE,
THREAD_PRIORITY_NORMAL], while rt should be
[THREAD_PRIORITY_ABOVE_NORMAL, THREAD_PRIORITY_TIME_CRITICAL].
supernova makes use of the priorities 3 times:
* drop rt scheduling of the main thread: on linux the subprocess
inherits the priority from the parent process (sclang runs with
real-time scheduling)
* dsp helper threads require the highest priority
* network IO has low rt priority
cheers, tim
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/