LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-28-2009, 07:02 AM   #1
joel2001k
Member
 
Registered: Mar 2007
Distribution: GNU/Linux debian unstable main
Posts: 95

Rep: Reputation: 17
need help with pthread internals, want to tune cond_wait


I'm writing an composition application using GTK+ on GNU/Linux. It is multithreaded. I use gthread-2.0 which is just a wrapper for pthread on GNU/Linux. So my question is rather about pthread. The reaction time of g_cond_wait and especially g_cond_signal is too slow for my needs. how can I speedup the hole thing. I just downloaded the source of eglibc and had a look at it.

So does anyone know if in debian GNU/Linux the pthread library uses realtime or do I have to compile it myself. Do I need to define a Macro like FUTEX_CLOCK_REALTIME or something like this? And what about realtime GNU/Linux? My project is hosted at sourceforge.net and is called ags.
 
Old 11-29-2009, 05:10 PM   #2
joel2001k
Member
 
Registered: Mar 2007
Distribution: GNU/Linux debian unstable main
Posts: 95

Original Poster
Rep: Reputation: 17
the realtime kernel patch solved my problem

I patched the linux kernel 2.6.31.6 with the patch-2.6.31.6-rt19 from kernel.org. But the first time I wasn't successful in compiling the kernel. So I disabled the staging drivers (Device Drivers) what enabled me to compile the realtime capable kernel successfully.
Then I did the steps necessary for low latency in alsa by following the instructions on alsa-project.org. Now I'm enjoying realtime ags!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libtest.a uses pthread: user of libtest.a should not link pthread again debulu Programming 2 01-31-2007 09:23 PM
Linux Internals Questions BryceCovert Linux - General 5 06-15-2006 09:09 PM
see linux kernel internals kpachopoulos Linux - General 4 07-05-2005 06:15 PM
os internals shakeeb General 2 05-18-2004 06:04 AM
Linux kernel internals RussoIsraeli Linux - General 2 11-02-2003 09:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration