On Tuesday 29 November 2005 08:41, Iain Duncan wrote: > pthread_attr_t attr_high, attr_low; > pthread_attr_init(&attr_high); > pthread_attr_init(&attr_low); > pthread_attr_setinheritsched(&attr_high, PTHREAD_INHERIT_SCHED); > pthread_attr_setschedpolicy(&attr_low, SCHED_OTHER); > > int ret_cs_t = pthread_create( &cs_thread, &attr_high, > cs_thread_routine, (void *)cs_inter ); > > int ret_fltk_t = pthread_create( &fltk_thread, &attr_low, > fltk_thread_routine, ( void *)cs_inter ); > > As far as I can tell, this is working ok, because if I push the system > to max cpu limits, the fltk thread is noticeably lagging while audio > still is ok ( ie the dials appear slowly across the screen ). Is there > anything wrong with the above solution? This looks OK. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net