Re: confusing passage in Doc.../mutex-design.txt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



El Sat, Mar 24, 2007 at 07:13:32AM -0400 Robert P. J. Day ha dit:

> 
>   regarding the properties of the "mutex" locking mechanism, the file
> Documentation/mutex-design.txt claims:
> 
> ...
> Disadvantages
> -------------
> 
> The stricter mutex API means you cannot use mutexes the same way you
> can use semaphores: e.g. they cannot be used from an interrupt
> context, ...
> 
>   but i thought semaphores *also* can't be used from interrupt
> context.  or am i somehow misreading this?  thanks.

semaphores can be given/released ('up'-operation), but not be
taken/acquired ('down') in interrupt context

m.

-- 
              We build too many walls and not enough bridges
                             (Isaac Newton)
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver keys.indymedia.org --recv-keys B9A88F6F           `-

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux