Re: [linux-audio-dev] sysv semaphores instead of pipes

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] sysv semaphores instead of pipes
From: Steve Harris (S.W.Harris_AT_ecs.soton.ac.uk)
Date: Mon Jun 25 2001 - 19:06:54 EEST


On Mon, Jun 25, 2001 at 11:05:19AM -0400, Paul Davis wrote:
> the problem with semaphores is that Unix/POSIX semantics don't allow
> integration of a process sleeping on an file descriptor and a
> semaphore (one of the few areas where Windows definitely improves upon
> Unix). this would mean adding yet another thread that just sleeps on
> the semaphore used to drive the "process" callback. Not terrible, but
> not particularly great either. The code would be a little cleaner, but
> we'd have an extra thread for every client. Uhm.

Seems like a high price to pay, would the code really be cleaner?

- Steve


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Jun 25 2001 - 18:20:30 EEST