Re: semaphore ownership

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

 



El Sat, Mar 21, 2009 at 12:00:56AM +0530 Shyam Burkule ha dit:

>              Is it possible to take semaphore in one thread and release it in
>    another thread?

sure, what isn't possible is doing the same with a mutex.

depending on the use of your semaphore a completion might be the
better choice.

-- 
Matthias Kaehlcke
Embedded Linux Engineer
Barcelona

             "The only important thing Windows does better
            than Debian is implementing the win32 platform"
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-

--
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