Re: [LAD] Noob Q: Pthreads the way to go?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Harry Van Haaren <harryhaaren@...>
Cc: <linux-audio-dev@...>
Date: Friday, November 13, 2009 - 11:48 am

Harry Van Haaren wrote:

No, there are also semaphores and read-write locks. RW-locks are
especially useful in cases where there's a single writer but multiple
readers (typically any data distribution).

In general, threading is a wrong way to go if you find sharing and
locking a lot of data between the threads. Threads should be able to
execute fairly independently to properly utilize resources. Naturally
there are typically scatter-gather points which are supposed to be short
compared to overall thread execution time.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] Noob Q: Pthreads the way to go?, Harry Van Haaren, (Fri Nov 13, 2:15 am)
Re: [LAD] Noob Q: Pthreads the way to go?, Harry Van Haaren, (Sun Nov 15, 12:01 am)
Re: [LAD] Noob Q: Pthreads the way to go?, Jussi Laako, (Fri Nov 13, 11:48 am)
Re: [LAD] Noob Q: Pthreads the way to go?, Markus Schwarzenberg, (Fri Nov 13, 7:57 am)
Re: [LAD] Noob Q: Pthreads the way to go?, Raymond Martin, (Fri Nov 13, 10:13 am)